From 6f884075d72bca6929ed214097612df6df170bfb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 29 Nov 2026 02:11:39 +0100 Subject: [PATCH] thing-tui: the pipeline events test says what it observes Per the steward's decision on thing2:finding:cut-tui-host.s1.report-overclaims-and-misses-estimate; the estimate is explained in the report. Co-Authored-By: Claude Opus 5.5 --- crates/thing-tui/tests/pipeline.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/thing-tui/tests/pipeline.rs b/crates/thing-tui/tests/pipeline.rs index d023c0b..ad9b61d 100644 --- a/crates/thing-tui/tests/pipeline.rs +++ b/crates/thing-tui/tests/pipeline.rs @@ -95,18 +95,17 @@ fn a_resize_is_the_next_frames_viewport() { assert_eq!(host.text().as_bytes(), golden.as_slice()); } -/// Events drained from the terminal reach `frame` in the order they came, translated by the same -/// function the host calls; a resize in the burst is not an event, and a frame holding them -/// draws the same screen it would have drawn without. +/// What it can observe today: a frame handed translated events draws the screen it draws without +/// them, because `Core::frame` routes no input yet. The order translate gives is pinned in +/// tests/input.rs, and what core does with it will be observable when it routes. #[test] -fn drained_events_feed_the_frame_in_order() { +fn a_frame_carrying_events_draws_the_same_screen_while_core_routes_none() { let burst = [ Event::Key(KeyEvent::new(KeyCode::Down, KeyModifiers::NONE)), Event::Resize(100, 37), Event::Key(KeyEvent::new(KeyCode::Char('x'), KeyModifiers::NONE)), ]; let events: Vec = burst.iter().flat_map(translate).collect(); - assert_eq!(events.len(), 3); let mut host = Host::new(Fixture::F01SwarmDashboard); host.frame(1_000, (100, 37), events); let golden = golden::read(&goldens(), "screen-f01-swarm-dashboard-cells.txt");