00001 // 00002 // tests/garbage.h 00003 // 00004 // Copyright (c) 2008-2009, Mike Austin 00005 // All rights reserved. 00006 // 00007 00008 namespace impulse { 00009 00010 class GarbageTest : public UnitTest { 00011 00012 public: 00013 00014 void runTests() 00015 { 00016 cout << "Testing Garbage..." << endl; 00017 cout << "------------------------------------------------------------" << endl; 00018 00019 Value lobby = new Lobby( _Object_.getFrame() ); 00020 00021 lobby.setSlot( Symbol::at("foo"), new GCArray( new Object(), new Object() ) ); 00022 lobby.setSlot( Symbol::at("foo"), 10.0 ); 00023 lobby.setSlot( Symbol::at("x"), 10.0 ); 00024 lobby.setSlot( Symbol::at("y"), 10.0 ); 00025 00026 cout << "------------------------------------------------------------" << endl; 00027 cout << endl; 00028 } 00029 00030 }; 00031 00032 }