macro_rules! assert_emits {
($decision:expr, []) => { ... };
($decision:expr, [$($cmd:expr),+ $(,)?]) => { ... };
}Expand description
Asserts that a decision emits the expected commands.
Compares the full command list in order. For partial checks,
use standard assertions on decision.commands() directly.
ยงExamples
use ready_active_safe::prelude::*;
use ready_active_safe::assert_emits;
let d: Decision<(), &str> = stay().emit("init").emit("begin");
assert_emits!(d, ["init", "begin"]);