00001
00002
00003
00004
00005
00006
00007
00008 namespace impulse {
00009
00010 class SymbolTest : public UnitTest {
00011
00012 public:
00013
00014 void runTests()
00015 {
00016 cout << "Testing Symbol..." << endl;
00017 cout << "------------------------------------------------------------" << endl;
00018
00019 if (true)
00020 {
00021 Frame frame;
00022
00023 frame.setSlot( Symbol::at("foo"), 10.0 );
00024
00025 OUTPUT( "-- Symbol equality" );
00026 ASSERT( Symbol( "foo" ).getName() == "foo" );
00027 ASSERT( &Symbol::at("foo") == &Symbol::at("foo") );
00028 ASSERT( &Symbol::at("foo") != &Symbol::at("bar") );
00029 }
00030
00031 cout << "------------------------------------------------------------" << endl;
00032 cout << endl;
00033 }
00034
00035 };
00036
00037 }