oden/third-party/vendor/ryu/tests/macros/mod.rs
2024-03-08 11:03:01 -08:00

8 lines
183 B
Rust

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