macro_rules! assert_transitions_to {
($decision:expr, $expected:expr) => { ... };
}Expand description
Asserts that a decision transitions to the expected mode.
Produces a clear failure message when the assertion fails.
ยงExamples
use ready_active_safe::prelude::*;
use ready_active_safe::assert_transitions_to;
let d: Decision<&str, ()> = transition("active");
assert_transitions_to!(d, "active");