improvise-7mro: an empty grid has no cell to wait for

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VdfEGXA7aJ6ftMsCc9PJze
This commit is contained in:
Edward Langley
2026-09-23 19:28:08 -07:00
parent fb246a8331
commit 51943d1bbc
+19
View File
@@ -4092,4 +4092,23 @@ mod tests {
`KeyOutcome::Request` has nowhere to put one"
);
}
/// improvise-7mro: an empty grid has no cell to wait for, so nothing a cell op
/// says there is a wait. See `context/test-evidence/clients.md`.
#[test]
fn a_cursor_on_an_empty_grid_waits_for_nothing() {
let mut state = in_mode(AppMode::Normal);
state.window = (2, 2);
for key in ['i', 'x'] {
let said = match resolve(&state, ev(KeyCode::Char(key))) {
KeyOutcome::Local(cmds) => cmds,
_ => Vec::new(),
};
assert!(
!said.contains(&Command::SetStatus(NOT_PROJECTED.to_string()))
&& !said.contains(&Command::SetOpenedEditor(Some(OpenedEditor::awaiting()))),
"{key}: waits on a cell no grid has: {said:?}"
);
}
}
}