summaryrefslogtreecommitdiffstats
path: root/vendor/ryu/tests/macros
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ryu/tests/macros')
-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 000000000..de6fb465e
--- /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)));
+ };
+}