persona drain tests: the unknown is told with the set-aside line the same turn

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 07:18:20 +01:00
commit 084e0ededf

View file

@ -1151,7 +1151,8 @@ fn t_l3_an_unknown_send_is_told_at_her_next_real_turn_exactly_once_though_a_line
let all = records(&rig);
let before_turn: Vec<Value> = all.iter().filter(|record| record["room"] != json!(room(3))).cloned().collect();
let told = |records: &[Value]| crate::projection::history(records).last_outcome.map(|last| last["untold"].clone());
assert_eq!(told(&before_turn), Some(json!([{ "kind": "unknown", "room": MINDS, "text": rig.mouth.sent.borrow()[0].text }])), "aside={aside}: told at her next turn");
let row = json!({ "kind": "unknown", "room": MINDS, "text": rig.mouth.sent.borrow()[0].text });
assert!(told(&before_turn).is_some_and(|rows| rows.as_array().is_some_and(|rows| rows.contains(&row) && rows.len() == 1 + usize::from(aside))), "aside={aside}: told at her next turn, with the line set aside");
rig.run(scripted(false));
assert_eq!(told(&records(&rig)), Some(Value::Null), "aside={aside}: told once");
}