PH Logo
Logo intepreter modeled after UCB Logo.
/Users/paul/Documents/phlogo/core/exprtest.cpp
00001 #define BOOST_TEST_MAIN
00002 #include <boost/test/unit_test.hpp>
00003 
00004 #include <iostream>
00005 #include <string>
00006 #include <sstream>
00007 #include <algorithm>
00008 #include <iterator>
00009 
00010 #include "Interpreter.h"
00011 #include "Console.h"
00012 #include "World.h"
00013 #include "Exceptions.h"
00014 #include "Thing.h"
00015 #include "Verbs.h"
00016 
00017 using namespace std;
00018 using namespace phlogo;
00019 using namespace boost;
00020 
00021 BOOST_AUTO_TEST_CASE( suite )
00022 {
00023         StringConsole c;
00024         World w(&c);
00025         Interpreter itp(&w);
00026     itp.run(&w, "testsuite \"expr");
00027     BOOST_CHECK_EQUAL(w.getResult()->getWord(), "passed [11]");
00028 }
 All Classes Functions