00001
00002
00003
00004
00005
00006
00007
00008 namespace impulse {
00009
00010 class ValueTest : public UnitTest {
00011
00012 public:
00013
00014 static UnitTest& create() { return *new ValueTest(); }
00015
00016 void runTests()
00017 {
00018 cout << "Testing Value..." << endl;
00019 cout << "------------------------------------------------------------" << endl;
00020
00021 ASSERT( Value( 10.0 ).getFloat() == 10.0 );
00022 ASSERT( Value( 10.0 ).getFloat() != 15.0 );
00023
00024 ASSERT( Value("foo").get<String>()->cstring() == "foo" );
00025 ASSERT( Value("foo").get<String>()->cstring() != "bar" );
00026
00027 cout << "------------------------------------------------------------" << endl;
00028 cout << endl;
00029 }
00030
00031 };
00032
00033 }