Macro nom_test_helpers::assert_finished_and_eq [] [src]

macro_rules! assert_finished_and_eq {
    ($r:expr, $o:expr) => { ... };
}

Same as assert_done_and_eq!, but asserts that the input slice is empty

Examples

let r: IResult<&str, &str> = IResult::Done("", "sup");
assert_finished_and_eq!(r, "sup");