persona: the Interpreter-failure test compares her agent's calls with an untouched wake's
This commit is contained in:
parent
0d9e001995
commit
97e277c6dc
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue