Macro nom_test_helpers::assert_error
[−]
[src]
macro_rules! assert_error { ($e:expr) => { ... }; }
This asserts that the IResult is an Error
Examples
let r: IResult<&[u8], &[u8]> = IResult::Error(Err::Code(ErrorKind::Custom(1))); assert_error!(r);