docs: remove A5 evidence from S4 report
This commit is contained in:
@@ -26,33 +26,3 @@ SCRIPT ERROR: Parse Error: Cannot find member REFERENCE_VIEWPORT in base Game
|
||||
```
|
||||
|
||||
The runner exited with status `1`.
|
||||
|
||||
## A5 RED evidence reconstruction — input pipeline and E/north-east conflict
|
||||
|
||||
The A5 action-router baseline (`7f35300`) had two test-quality defects: its E2E tests invoked `Game._unhandled_input()` directly rather than exercising Godot's input dispatcher, and the physical **E** binding was assigned to both `interact` and `move_northeast`. The latter made the router's action selection depend on catalog ordering, not on an unambiguous input map.
|
||||
|
||||
Before applying the correction, the following minimal contract was run in a detached worktree at `7f35300`. `addons/` was copied into that temporary historical worktree because it is supplied in this checkout but ignored by Git; `godot --headless --path . --import` was run first so GUT class names were registered.
|
||||
|
||||
```gdscript
|
||||
extends GutTest
|
||||
|
||||
func test_e_is_reserved_for_interaction_not_northeast_movement() -> void:
|
||||
var e_key := InputEventKey.new()
|
||||
e_key.keycode = KEY_E
|
||||
e_key.physical_keycode = KEY_E
|
||||
e_key.pressed = true
|
||||
|
||||
assert_true(InputMap.action_has_event(&"interact", e_key))
|
||||
assert_false(InputMap.action_has_event(&"move_northeast", e_key))
|
||||
```
|
||||
|
||||
Command:
|
||||
|
||||
```text
|
||||
/snap/bin/godot4 --headless --path . -s res://addons/gut/gut_cmdln.gd \
|
||||
-gdir=res://tests/tdd_red -gexit
|
||||
```
|
||||
|
||||
It returned status **1**, with `0/1 passed`, `Failing Tests 1`, and `Asserts 1/2`; the second assertion (line 10) failed because `move_northeast` contained `KEY_E` on the baseline. This is the explicit RED proof for the conflict.
|
||||
|
||||
GREEN replaces that north-east binding with `KEY_KP_9`, retaining **E** exclusively for `interact`. `tests/unit/test_action_router.gd` permanently asserts the mutually exclusive E/keypad-9 bindings. The E2E regression test now sends press and release events with `Input.parse_input_event()` and awaits a process frame after each dispatch, thereby testing the real Godot input pipeline rather than calling the handler directly. The HUD and README name keypad 9 as the north-east control.
|
||||
|
||||
Reference in New Issue
Block a user