Advertisement
Guest User

Untitled

a guest
May 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. func test_plant_bomb_can_plant():
  2. board = _board.instance()
  3. bot = _bot.instance()
  4. board.add_child(bot)
  5. var timer = Timer.new()
  6. timer.set_one_shot(true)
  7. timer.set_wait_time(BOMB_DELAY)
  8. timer.connect("timeout", self, "_check_canPlant_after_timeout")
  9. bot.plant_bomb()
  10. timer.start()
  11. assert_eq(bot.canPlant, INITIAL_NUMBER_OF_BOMBS - 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement