[][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

Examples

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

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