diff options
Diffstat (limited to 'third_party/rust/ryu/tests/macros/mod.rs')
-rw-r--r-- | third_party/rust/ryu/tests/macros/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/rust/ryu/tests/macros/mod.rs b/third_party/rust/ryu/tests/macros/mod.rs new file mode 100644 index 0000000000..de6fb465e8 --- /dev/null +++ b/third_party/rust/ryu/tests/macros/mod.rs @@ -0,0 +1,8 @@ +macro_rules! check { + ($f:tt) => { + assert_eq!(pretty($f), stringify!($f)); + }; + (-$f:tt) => { + assert_eq!(pretty(-$f), concat!("-", stringify!($f))); + }; +} |