use super::Fill;
use crate::test_support::window::seated;
#[test]
fn going_to_a_box_selects_the_row_and_is_taken_once() {
let mut model = seated();
model.fill_in("another conversation", Fill::Reason);
assert_eq!(model.conversation.as_deref(), Some("another conversation"));
assert_eq!(model.filling(), Some(Fill::Reason));
assert_eq!(model.filling(), None, "taken, not read");
}
#[test]
fn a_navigation_composes_no_gesture_at_all() {
let mut model = seated();
model.fill_in("20260830T051200Z-a1b2", Fill::Arming);
assert!(
model.outbox.is_empty(),
"going to a box asks for nothing: {:?}",
model.outbox
);
assert_eq!(model.filling(), Some(Fill::Arming));
}
#[test]
fn the_goal_types_nothing_and_the_two_verbs_type_their_word() {
assert_eq!(Fill::Goal.typed(), None);
assert_eq!(Fill::Reason.typed(), Some("flag"));
assert_eq!(Fill::Arming.typed(), Some("delete"));
}