fparkan/vendor/ryu/tests/macros/mod.rs

9 lines
183 B
Rust
Raw Normal View History

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