From: Gunnar Beutner Date: Mon, 2 Sep 2013 13:11:39 +0000 (+0200) Subject: Add more unit tests for the Value class. X-Git-Tag: v0.0.3~622 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c552d79774c4549071e819e02e430dde1290eadf;p=icinga2 Add more unit tests for the Value class. --- 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)