diff --git a/crates/mind-body/src/persona/drain_tests.rs b/crates/mind-body/src/persona/drain_tests.rs index 2d49625..6ecfccf 100644 --- a/crates/mind-body/src/persona/drain_tests.rs +++ b/crates/mind-body/src/persona/drain_tests.rs @@ -427,9 +427,9 @@ fn t_p1_an_overflowed_turn_room_tells_her_the_count_and_acks_every_held_line_onc let told: usize = prompt.split("(").find_map(|part| part.split_once(" more said to ").map(|(n, _)| n.trim().parse().unwrap())).expect("she is told the count"); let held: Vec = rig.records()[0]["held"].as_array().unwrap().iter().map(|event| event.as_str().unwrap().trim_start_matches("$e").parse().unwrap()).collect(); assert!(told > 0 && told < 200, "{told}"); + let acks = rig.acks(); assert_eq!(held.iter().copied().collect::>(), (1..=200).collect(), "the turn room's every event is held"); assert_eq!(acks.last().copied(), Some(200), "the ack reaches the 200th event"); - let acks = rig.acks(); let mut once = acks.clone(); once.sort_unstable(); once.dedup();