Skip to content
Snippets Groups Projects
UtilityTest.cpp 401 B
Newer Older
  • Learn to ignore specific revisions
  • 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::rvalue_ref < Foo > val ( new Foo );
    	CPPUNIT_ASSERT ( val->bar ( ) == 1 );
    }