blob: 09cd218b9cffe8ee0daa78ca54bf4a25683a8eb0 [file] [log] [blame]
macro_rules! check {
($ryu:tt, $pretty:tt) => {
assert_eq!($ryu, $pretty);
assert_eq!(print($ryu), stringify!($ryu));
assert_eq!(pretty($pretty), stringify!($pretty));
};
(-$ryu:tt, -$pretty:tt) => {
assert_eq!(-$ryu, -$pretty);
assert_eq!(print(-$ryu), concat!("-", stringify!($ryu)));
assert_eq!(pretty(-$pretty), concat!("-", stringify!($pretty)));
};
}