From 97e277c6dc2d1d9ea51c50baf9b1dfd53219ddb7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 1 Dec 2026 02:20:22 +0100 Subject: [PATCH] persona: the Interpreter-failure test compares her agent's calls with an untouched wake's --- crates/mind-body/src/persona/drain_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/mind-body/src/persona/drain_tests.rs b/crates/mind-body/src/persona/drain_tests.rs index 2fad36a..ccbfcfc 100644 --- a/crates/mind-body/src/persona/drain_tests.rs +++ b/crates/mind-body/src/persona/drain_tests.rs @@ -804,7 +804,10 @@ fn t_a2_an_interpreter_failure_after_the_agent_acted_fails_nothing() { let receipt = rows(&records, "interpreter")[0]; assert_eq!((receipt["status"].as_str(), receipt["put"].as_str()), (Some("error"), Some("none")), "{receipt}"); assert!(rig.store.puts.borrow().is_empty()); - assert_eq!((rig.agent.seen.borrow().len(), rig.mouth.sent.borrow().len(), rig.acks()), (1, 1, vec![1]), "her agent ran and spoke once"); + let control = Rig::new(vec![line(1, &room(1), META, "morning, are you there")]); + control.agent.answers.borrow_mut().push_back(says(&room(1), "Morning. I am here.")); + control.run(Interprets(MOVES)); + assert_eq!((rig.agent.seen.borrow().len(), rig.mouth.sent.borrow().len(), rig.acks()), (control.agent.seen.borrow().len(), 1, vec![1]), "her agent took the one turn a wake takes and spoke once"); } /// A say the mouth refused is told at her next wake, to her and to her agent, and not at the one after.