From 4de480393606fa1f680a4fe84a2507679016efc1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 21:04:41 -0300 Subject: test/soak.py: the monkey never asks for Exit: window mode ended with Enter (left open, it took the next action's keys, and a `k` at a column's top went to its tag, where `quebec` typed `SPC q`, Exit, and a session with nothing unsaved quit as asked: the box's 1093rd-input quit), and no word starts with q Co-Authored-By: Claude Opus 5.5 --- test/soak.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/soak.py b/test/soak.py index 1a62a5f6..400b3dc3 100644 --- a/test/soak.py +++ b/test/soak.py @@ -130,7 +130,7 @@ def pct(xs, p): # ---- the fixture: a directory such as a person works in ---- WORDS = ('alpha bravo charlie delta echo foxtrot golf hotel india juliet kilo lima mike november oscar papa ' - 'quebec romeo sierra tango uniform victor whiskey xray yankee zulu').split() + 'romeo sierra tango uniform victor whiskey xray yankee zulu').split() def fixture(at, rng): @@ -679,7 +679,9 @@ def act_shell(c, rng, k): def act_window(c, rng, k): - k(b'\x17' + rng.choice([b'h', b'j', b'k', b'l'])) + # Enter ends window mode, as a person would: left open, it took the next + # action's keys, and a `k` at a column's top went to its tag, where `SPC q` ran Exit + k(b'\x17' + rng.choice([b'h', b'j', b'k', b'l']) + b'\r') def act_column(c, rng, k): -- cgit v1.3