summaryrefslogtreecommitdiffstats
path: root/vendor/anes/tests/parser/mod.rs
blob: ecddcddb6e907b777aac5afe3f5debfc65e01836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#[macro_export]
macro_rules! test_sequence {
    ($bytes:expr, $seq:expr) => {
        let mut parser = ::anes::parser::Parser::default();
        parser.advance($bytes, false);
        assert_eq!(parser.next(), Some($seq));
    };
}

#[macro_export]
macro_rules! test_sequences {
    (
        $(
            $bytes:expr, $seq:expr,
        )*
    ) => {
        $(
            test_sequence!($bytes, $seq);
        )*
    };
}

mod cursor;
mod key;
mod mouse;