From 5886ee0de9d07a004bc73ea42803cf46b99b3c07 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 07:15:56 +0100 Subject: [PATCH] persona outcome tests: a refusal in another room is no refusal of this line Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/outcome/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/mind-body/src/projection/outcome/tests.rs b/crates/mind-body/src/projection/outcome/tests.rs index 3c347cc..18dd8b0 100644 --- a/crates/mind-body/src/projection/outcome/tests.rs +++ b/crates/mind-body/src/projection/outcome/tests.rs @@ -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]