Skip to content
Snippets Groups Projects
UtilityTest.cpp 400 B
Newer Older
Jan Trávníček's avatar
Jan Trávníček committed
#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 { } );
Jan Trávníček's avatar
Jan Trávníček committed
	CPPUNIT_ASSERT ( val->bar ( ) == 1 );
}