1 2 3 4 5 6 7 8 9 10 11 12 13
pub mod fixtures; #[macro_export] macro_rules! assert_match_pattern ( ($e:expr, $p:pat) => ( match $e { $p => (), _ => panic!(r#"assertion failed (value doesn't match pattern): value: `{:?}`, pattern: `{}`"#, $e, stringify!($p)) } ) );