Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
UtilityTest.cpp 401 B
#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::rvalue_ref < Foo > val ( new Foo );
	CPPUNIT_ASSERT ( val->bar ( ) == 1 );
}