Ejemplo n.º 1
0
 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)");
 }
Ejemplo n.º 2
0
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();
}
Ejemplo n.º 3
0
 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)");
 }