[][src]Macro nom_test_helpers::assert_done

macro_rules! assert_done {
    ($e:expr $(,)?) => { ... };
    ($e:expr, $($arg:tt)+) => { ... };
}

This macro checks to make sure that the IResult it is passed is Done. That is, it checks that the parser completed successfully but doesn't make any assumptions about the remaining input.

Examples

use nom_test_helpers::assert_done;
use nom::{named, tag};

named!(abcd<&str, &str>, tag!("abcd"));
let r = abcd("abcd");
assert_done!(r);