persona tests: outcome_trace needs no unwrap

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

View file

@ -648,7 +648,7 @@ fn t6_a_refused_send_is_told_as_not_gone_out() {
let (lines, omitted) = told_trace(&refused(json!([]), json!([])));
assert_eq!(lines, [format!("- He had drafted {}, and it did not go out.", crate::projection::select::spoken(text))], "{omitted:?}");
assert!(omitted.is_empty(), "{omitted:?}");
let outcome = outcome_trace(&refused(json!([]), json!([]))).unwrap();
let outcome = outcome_trace(&refused(json!([]), json!([])));
assert_eq!(outcome.event(0, packet().forms, &[]), "- He had drafted a line, and it did not go out.");
let (reach, _) = told_trace(&refused(json!([]), json!([{ "kind": "missing_affordance", "draft": 1, "quote": null, "detail": "" }])));
assert_eq!(reach, [format!("- He had drafted {}, and it did not go out. It reaches for something he has no way to do from here.", crate::projection::select::spoken(text))]);