From c552d79774c4549071e819e02e430dde1290eadf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Sep 2013 15:11:39 +0200 Subject: [PATCH] Add more unit tests for the Value class. --- test/base-object.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/base-object.cpp b/test/base-object.cpp index bacead0db..678e25f96 100644 --- a/test/base-object.cpp +++ b/test/base-object.cpp @@ -18,6 +18,7 @@ ******************************************************************************/ #include "base/object.h" +#include "base/value.h" #include #include @@ -48,6 +49,10 @@ BOOST_AUTO_TEST_CASE(getself) TestObject::Ptr tobject = boost::make_shared(); TestObject::Ptr tobject_self = tobject->GetTestRef(); BOOST_CHECK(tobject == tobject_self); + + Value vobject = tobject; + BOOST_CHECK(!vobject.IsEmpty()); + BOOST_CHECK(vobject.IsObjectType()); } BOOST_AUTO_TEST_CASE(weak) -- 2.50.1