macro_rules! assert_execution_error {
($execution_result:expr, matches $pat:pat $(if $guard:expr)? $(,)?) => { ... };
($execution_result:expr, $expected:expr $(,)?) => { ... };
}Expand description
Asserts that a Result<_, ExecError> failed as expected.
Two forms:
..., matches <pat> [if <guard>]— matches the innerExecutionErroragainst<pat>. Use this for variants other thanFailedAssertion, or to assert on a specificerr_code...., $expected— delegates toMasmError::matches_execution_error(e.g. aMasmErrorerror code).