about summary refs log tree commit diff
path: root/users/aspen/achilles/src/parser/macros.rs
#[cfg(test)]
#[macro_use]
macro_rules! test_parse {
    ($parser: ident, $src: expr) => {{
        let res = $parser($src);
        nom_trace::print_trace!();
        let (rem, res) = res.unwrap();
        assert!(
            rem.is_empty(),
            "non-empty remainder: \"{}\", parsed: {:?}",
            rem,
            res
        );
        res
    }};
}