Macro nom_test_helpers::assert_finished_and_eq[][src]

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

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

Examples

use nom_test_helpers::assert_finished_and_eq;

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