void ParserTests::parseList() { testCode("do\n val test = [\n1,\n2,\n3,\n\"a\"\n]\nend", "(\n(do (val test = [\n1,\n2,\n3,\n\"a\"\n]))\n)"); testCode("do\n [\n ]\nend", "(\n(do [\n])\n)"); }
void GameLayer::update( float dTime ) { //test code testCode(); setViewPort(this, m_Player->getPosition(), cocos2d::Point::ANCHOR_MIDDLE); m_BackGround->setPosition(-getPosition() + m_BackGround->getContentSize() / 2); m_RoomLayers[m_CurrentRoomNum]->update(dTime); m_Player->update(dTime); checkIn(); }
void ParserTests::parseModule() { testCode("def foo()\n1+2*3 and 4/5+6%7\nend", "(\n(def foo -> (and (1 + (2 * 3)) ((4 / 5) + (6 % 7))))\n)"); }