Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func test_plant_bomb_can_plant():
- board = _board.instance()
- bot = _bot.instance()
- board.add_child(bot)
- var timer = Timer.new()
- timer.set_one_shot(true)
- timer.set_wait_time(BOMB_DELAY)
- timer.connect("timeout", self, "_check_canPlant_after_timeout")
- bot.plant_bomb()
- timer.start()
- assert_eq(bot.canPlant, INITIAL_NUMBER_OF_BOMBS - 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement