drain_tests: order the overflow assertions after the acks binding

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-29 22:14:45 +01:00
commit e4aa73b4dc

View file

@ -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<u64> = 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::<std::collections::BTreeSet<u64>>(), (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();