summaryrefslogtreecommitdiff
path: root/exercises/test4.rs
diff options
context:
space:
mode:
authorliv <liv@fastmail.com>2019-01-23 20:48:01 +0100
committerliv <liv@fastmail.com>2019-01-23 20:48:01 +0100
commitdc1f3b79f8b528659e39057ac733d07e1051bc4d (patch)
tree5461c32ea18c38e89ac96d9baba3d7ea4b2ac9f3 /exercises/test4.rs
parent141db7795b23d066a2b7c798d16c96ff53aa5a52 (diff)
add tests; refactor exercise links
Diffstat (limited to 'exercises/test4.rs')
-rw-r--r--exercises/test4.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/exercises/test4.rs b/exercises/test4.rs
new file mode 100644
index 0000000..e50f1b0
--- /dev/null
+++ b/exercises/test4.rs
@@ -0,0 +1,12 @@
+// test4.rs
+// This test covers the sections:
+// - Modules
+// - Macros
+
+// Write a macro that passes the test! No hints this time, you can do it!
+
+fn main() {
+ if my_macro!("world!") != "Hello world!" {
+ panic!("Oh no! Wrong output!");
+ }
+}