persona outcome tests: a refusal in another room is no refusal of this line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 07:15:56 +01:00
commit 5886ee0de9

View file

@ -655,11 +655,11 @@ fn t6_a_refused_send_is_told_as_not_gone_out() {
// The receipt decides what reached the room: a line with one is told as the room having it, whatever else says not.
let (lines, _) = told_trace(&refused(json!([{ "event": "40", "room": MINDS, "text": text }]), json!([])));
assert!(lines.iter().all(|line| !line.contains("did not go out")), "{lines:?}");
// Mutant (match a refused send by text alone): a refusal in another room tells nothing here.
// Mutant (match a refused send by text alone): a refusal in another room is no refusal of this line, which stays a said line with no receipt.
let mut elsewhere = refused(json!([]), json!([]));
elsewhere["refused_sends"][0]["room"] = json!("#elsewhere:gamecult.org");
let (lines, omitted) = told_trace(&elsewhere);
assert!(lines.is_empty() && omitted[0].contains("no receipt"), "{lines:?} {omitted:?}");
let (_, omitted) = told_trace(&elsewhere);
assert!(omitted.len() == 1 && omitted[0].contains("no receipt"), "{omitted:?}");
}
#[test]