mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
Enable test for exercise test4
This commit is contained in:
parent
ec51cdb229
commit
8b971ffab6
2 changed files with 9 additions and 4 deletions
|
@ -7,8 +7,13 @@
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
fn main() {
|
#[cfg(test)]
|
||||||
if my_macro!("world!") != "Hello world!" {
|
mod tests {
|
||||||
panic!("Oh no! Wrong output!");
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_my_macro() {
|
||||||
|
assert_eq!(my_macro!("world!"), "Hello world!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -369,7 +369,7 @@ The way macros are written, it wants to see something between each
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "test4"
|
name = "test4"
|
||||||
path = "exercises/test4.rs"
|
path = "exercises/test4.rs"
|
||||||
mode = "compile"
|
mode = "test"
|
||||||
hint = "No hints this time ;)"
|
hint = "No hints this time ;)"
|
||||||
|
|
||||||
# MOVE SEMANTICS
|
# MOVE SEMANTICS
|
||||||
|
|
Loading…
Reference in a new issue