File: mod.rs

package info (click to toggle)
rust-anes 0.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 284 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (16)
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;