rustc/vendor/ryu/tests/macros/mod.rs
2019-11-25 21:38:20 +00:00

9 lines
183 B
Rust

macro_rules! check {
($f:tt) => {
assert_eq!(pretty($f), stringify!($f));
};
(-$f:tt) => {
assert_eq!(pretty(-$f), concat!("-", stringify!($f)));
};
}