Macro assert_state
Source macro_rules! assert_state {
($harness:expr, $($field:tt).+, $expected:expr) => { ... };
}
Expand description
Assert that a field of the harness state has an expected value.
§Example
ⓘuse tui_dispatch::testing::{TestHarness, assert_state};
let harness = TestHarness::<AppState, Action>::new(AppState::default());
assert_state!(harness, counter, 0);
assert_state!(harness, ui.focused_panel, Panel::Keys);