drain_tests: the overflowed turn room holds all 200 events and acks through the 200th
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5c4742aa8e
commit
4cdcef5c9b
1 changed files with 2 additions and 0 deletions
|
|
@ -427,6 +427,8 @@ 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}");
|
||||
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue