def test_createListWith(self): self.assertEqual(['x', 'yz'], BlocklyMethods.createListWith('x', 'yz'))
import math class BreakOutOfALoop(Exception): pass class ContinueLoop(Exception): pass _brickConfiguration = { 'wheel-diameter': 5.6, 'track-width': 18.0, 'actors': { }, 'sensors': { }, } hal = Hal(_brickConfiguration) item = BlocklyMethods.createListWith(0, 0, 0) item2 = BlocklyMethods.createListWith(True, True, True) item3 = BlocklyMethods.createListWith("", "", "") item4 = BlocklyMethods.createListWith('white', 'white', 'white') item5 = BlocklyMethods.createListWith(None, None, None) item6 = 0 item7 = True def run(): global item, item2, item7, item4, item3, item6, item5 item6 = BlocklyMethods.length( item) item6 = BlocklyMethods.length( item2) item6 = BlocklyMethods.length( item3) item6 = BlocklyMethods.length( item4) item6 = BlocklyMethods.length( item5) item7 = BlocklyMethods.isEmpty( item) item7 = BlocklyMethods.isEmpty( item2)