mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-26 15:24:17 -05:00
Add a second test case
This commit is contained in:
parent
8b971ffab6
commit
a45486f2d0
1 changed files with 6 additions and 2 deletions
|
@ -12,8 +12,12 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_my_macro() {
|
fn test_my_macro_world() {
|
||||||
assert_eq!(my_macro!("world!"), "Hello world!");
|
assert_eq!(my_macro!("world!"), "Hello world!");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_my_macro_goodbye() {
|
||||||
|
assert_eq!(my_macro!("goodbye!"), "Hello goodbye!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue