From b1c5e44d58f30b6c511ce225cb008878b67e6fe2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 1 Dec 2026 16:20:09 +0100 Subject: [PATCH] persona tests: the report takes the run by reference Co-Authored-By: Claude Sonnet 5.5 --- crates/mind-body/src/projection/simulate/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mind-body/src/projection/simulate/tests.rs b/crates/mind-body/src/projection/simulate/tests.rs index 697448c..5a9e565 100644 --- a/crates/mind-body/src/projection/simulate/tests.rs +++ b/crates/mind-body/src/projection/simulate/tests.rs @@ -473,7 +473,7 @@ fn the_interpreter_runs_after_each_wake_and_the_report_says_what_it_did() { let personas = run["metrics"]["personas"].as_object().unwrap(); assert!(personas.values().all(|persona| persona["interpreter"]["calls"] == persona["turns"] && persona["interpreter"]["intentions_added"] == persona["turns"]), "{personas:?}"); let plan_file: SimFile = toml::from_str(&std::fs::read_to_string(&path).unwrap()).unwrap(); - let report = markdown(&path, &plan_file, &members, None, &[run.clone()]); + let report = markdown(&path, &plan_file, &members, None, std::slice::from_ref(&run)); assert!(report.contains("### Interpreter by wake") && report.contains("intention added") && report.contains("She means to say what the build did."), "{report}"); assert!(!report.contains("the Interpreter's lines, each posted"), "the header no longer claims a speech it does not run"); assert!(members.iter().all(|member| member.state["candidateActions"]["actions"].as_array().is_none_or(|actions| actions.iter().all(|action| action["customActionType"] != "intention"))), "a run moves its own copy, never the cast's");