Macro mentat_parser_utils::assert_parse_failure_contains [] [src]

macro_rules! assert_parse_failure_contains {
    ( $parser: expr, $input: expr, $expected: expr ) => { ... };
}

assert_parse_failure_contains! simplifies running a parser function against string input and expecting a certain failure. This is working around the complexity of pattern matching parse errors that contain spans.