#include "UtilityTest.h" #include <alib/utility> CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( UtilityTest, "bits" ); CPPUNIT_TEST_SUITE_REGISTRATION( UtilityTest ); void UtilityTest::setUp() { } void UtilityTest::tearDown() { } class Foo { public: int bar ( ) { return 1; } }; void UtilityTest::testProperties() { ext::ptr_value < Foo > val ( Foo { } ); CPPUNIT_ASSERT ( val->bar ( ) == 1 ); }