Persona wake: the simulator's tests drop FactLine's retired is_direct, and the parity test pins the Mind run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c320966315
commit
760cc8fb81
1 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ fn t_w1_same_facts_both_paths() {
|
|||
let libby = Addressee::new(LIBBY, ["libby", "Libby"]);
|
||||
let speaker = |line: &Line| if line.from == TOBIAH { Speaker::Mind } else { Speaker::Member };
|
||||
// The simulator's path: the lines she sees, in order.
|
||||
let seeing: Vec<FactLine> = lines.iter().map(|line| FactLine { sender: &line.from, room: &line.room, at_ms: line.at_ms, is_direct: false }).collect();
|
||||
let seeing: Vec<FactLine> = lines.iter().map(|line| FactLine { sender: &line.from, room: &line.room, at_ms: line.at_ms }).collect();
|
||||
let simulated = line_facts(&seeing, LIBBY, &cast, &own, 30 * 60_000);
|
||||
// The poll's path: the deliveries pending (not her own lines), each with the room's earlier lines as its context.
|
||||
let heard: Vec<usize> = (0..lines.len()).filter(|at| lines[*at].from != LIBBY).collect();
|
||||
|
|
@ -331,7 +331,7 @@ fn a_direct_message_in_one_of_the_plans_rooms_is_refused() {
|
|||
#[test]
|
||||
fn the_mind_run_is_counted_across_her_rooms_and_an_uncounted_run_is_at_the_cap() {
|
||||
let cast = vec![TOBIAH.to_owned(), LIBBY.to_owned(), "@kiko:x".to_owned(), "@other:x".to_owned()];
|
||||
let line = |from: &'static str, room: &'static str| FactLine { sender: from, room, at_ms: 0, is_direct: false };
|
||||
let line = |from: &'static str, room: &'static str| FactLine { sender: from, room, at_ms: 0 };
|
||||
let run = |lines: &[FactLine]| line_facts(lines, "@kiko:x", &cast, &[], 0).iter().map(|facts| facts.mind_run).collect::<Vec<_>>();
|
||||
assert_eq!(run(&[line("@meta:x", "#a:x"), line(TOBIAH, "#a:x"), line("@other:x", "#b:x"), line(TOBIAH, "#b:x")]), vec![0, 0, 1, 2]);
|
||||
// Soul's case: Meta chatting in #eureka does not end a loop in #minds; a word from Meta in #minds does.
|
||||
|
|
|
|||
Loading…
Reference in a new issue