extends TestCase func test_every_action_of_the_game_exists() -> void: InputSetup.install() for action in ["move_up", "move_down", "move_left", "move_right", "dig", "save_game", "load_game", "toggle_pause"]: check(InputMap.has_action(action), "action %s" % action) func test_installing_twice_adds_no_second_set_of_keys() -> void: InputSetup.install() var events := InputMap.action_get_events("move_up").size() InputSetup.install() check_eq(InputMap.action_get_events("move_up").size(), events, "same number of keys") check_eq(events, 2, "W and the arrow key")