summaryrefslogtreecommitdiff
path: root/exercises/quiz4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/quiz4.rs')
-rw-r--r--exercises/quiz4.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/exercises/quiz4.rs b/exercises/quiz4.rs
new file mode 100644
index 0000000..6c47480
--- /dev/null
+++ b/exercises/quiz4.rs
@@ -0,0 +1,23 @@
+// quiz4.rs
+// This quiz covers the sections:
+// - Modules
+// - Macros
+
+// Write a macro that passes the quiz! No hints this time, you can do it!
+
+// I AM NOT DONE
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_my_macro_world() {
+ assert_eq!(my_macro!("world!"), "Hello world!");
+ }
+
+ #[test]
+ fn test_my_macro_goodbye() {
+ assert_eq!(my_macro!("goodbye!"), "Hello goodbye!");
+ }
+}