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:
parent
d524ab7736
commit
5886ee0de9
1 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue