geoposition_test.cpp
public text v1 · immutable CREATE_STACKLESS_TEST(GeopositionIsExposedToPython)
{
String code = "import gamedata"
"a = gamedata.Geoposition(0,0)\n"
"snake.Sync.pushTestResult(str(a))\n";
SnakeSystem::instance().execute(code);
}
TEST_STACKLESS(GeopositionIsExposedToPython)
{
using namespace boost::python;
String a = extract<String>(Sync::popTestResult());
CHECK_EQUAL("[Geoposition 0, 0 degress, (0, 0) rad]", a);
}