test: finalize S6.2 regression coverage

This commit is contained in:
goose
2026-10-01 22:41:35 -04:00
parent 67efd9dc67
commit bc9b5898a3
6 changed files with 128 additions and 15 deletions
+4 -2
View File
@@ -17,7 +17,8 @@ func test_real_input_opens_door_then_chest_and_preserves_stairs_route() -> void:
assert_eq(state.map.size, Vector2i(30, 20))
assert_eq(prompt_label.text, "Espace — Ouvrir la porte")
game._unhandled_input(_key_event(KEY_SPACE))
game._unhandled_input(_key_event(KEY_E))
assert_eq(game.last_turn_results[0].kind, &"door_opened")
assert_eq(state.map.get_cell(Vector2i(4, 11)), GridMapState.CellKind.FLOOR)
for keycode in [KEY_UP, KEY_UP, KEY_UP, KEY_UP]:
@@ -29,7 +30,8 @@ func test_real_input_opens_door_then_chest_and_preserves_stairs_route() -> void:
assert_eq(state.map.get_cell(Vector2i(4, 7)), GridMapState.CellKind.CHEST)
assert_string_contains(event_log.get_parsed_text(), "Your way is blocked.")
game._unhandled_input(_key_event(KEY_E))
game._unhandled_input(_key_event(KEY_SPACE))
assert_eq(game.last_turn_results[0].kind, &"chest_opened")
assert_eq(state.map.get_cell(Vector2i(4, 7)), GridMapState.CellKind.FLOOR)
assert_eq(hud.get_context_prompt(), "")
assert_string_contains(event_log.get_parsed_text(), "You open the chest.")