summaryrefslogtreecommitdiff
path: root/vendor/ryu/tests/macros/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ryu/tests/macros/mod.rs')
-rw-r--r--vendor/ryu/tests/macros/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/ryu/tests/macros/mod.rs b/vendor/ryu/tests/macros/mod.rs
new file mode 100644
index 0000000..de6fb46
--- /dev/null
+++ b/vendor/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)));
+ };
+}