PH Logo
Logo intepreter modeled after UCB Logo.
/Users/paul/Documents/phlogo/core/crasherstest.cpp
00001 #define BOOST_TEST_MAIN
00002 #include <boost/test/unit_test.hpp>
00003 
00004 #include "Thing.h"
00005 #include "Console.h"
00006 #include "World.h"
00007 #include "Interpreter.h"
00008 
00009 using namespace std;
00010 using namespace phlogo;
00011 
00012 BOOST_AUTO_TEST_CASE( suite )
00013 {
00014         StringConsole c;
00015         World w(&c);
00016         Interpreter itp(&w);
00017     itp.setDebug(false);
00018     itp.run(&w, "testsuite \"crashers");
00019     BOOST_CHECK(!c.isError());
00020     if (c.isError()) {
00021         cout << c.getString() << endl;
00022     }
00023     BOOST_CHECK_EQUAL(w.getResult()->getWord(), "passed [1]");
00024 }
 All Classes Functions