1 #[macro_export] 2 macro_rules! test_sequence { 3 ($bytes:expr, $seq:expr) => { 4 let mut parser = ::anes::parser::Parser::default(); 5 parser.advance($bytes, false); 6 assert_eq!(parser.next(), Some($seq)); 7 }; 8 } 9 10 #[macro_export] 11 macro_rules! test_sequences { 12 ( 13 $( 14 $bytes:expr, $seq:expr, 15 )* 16 ) => { 17 $( 18 test_sequence!($bytes, $seq); 19 )* 20 }; 21 } 22 23 mod cursor; 24 mod key; 25 mod mouse; 26