mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 13:32:23 -05:00
Add missing semicolons
This commit is contained in:
parent
c8ad6c3960
commit
7cdf6b7942
5 changed files with 11 additions and 11 deletions
|
@ -20,16 +20,16 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn foo_for_fizz() {
|
fn foo_for_fizz() {
|
||||||
assert_eq!(foo_if_fizz("fizz"), "foo")
|
assert_eq!(foo_if_fizz("fizz"), "foo");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn bar_for_fuzz() {
|
fn bar_for_fuzz() {
|
||||||
assert_eq!(foo_if_fizz("fuzz"), "bar")
|
assert_eq!(foo_if_fizz("fuzz"), "bar");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn default_to_baz() {
|
fn default_to_baz() {
|
||||||
assert_eq!(foo_if_fizz("literally anything"), "baz")
|
assert_eq!(foo_if_fizz("literally anything"), "baz");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,21 +34,21 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn gopher_lives_in_burrow() {
|
fn gopher_lives_in_burrow() {
|
||||||
assert_eq!(animal_habitat("gopher"), "Burrow")
|
assert_eq!(animal_habitat("gopher"), "Burrow");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn snake_lives_in_desert() {
|
fn snake_lives_in_desert() {
|
||||||
assert_eq!(animal_habitat("snake"), "Desert")
|
assert_eq!(animal_habitat("snake"), "Desert");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn crab_lives_on_beach() {
|
fn crab_lives_on_beach() {
|
||||||
assert_eq!(animal_habitat("crab"), "Beach")
|
assert_eq!(animal_habitat("crab"), "Beach");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn unknown_animal() {
|
fn unknown_animal() {
|
||||||
assert_eq!(animal_habitat("dinosaur"), "Unknown")
|
assert_eq!(animal_habitat("dinosaur"), "Unknown");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ mod tests {
|
||||||
|
|
||||||
let nice_slice = ???
|
let nice_slice = ???
|
||||||
|
|
||||||
assert_eq!([2, 3, 4], nice_slice)
|
assert_eq!([2, 3, 4], nice_slice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,11 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_create_empty_list() {
|
fn test_create_empty_list() {
|
||||||
assert_eq!(List::Nil, create_empty_list())
|
assert_eq!(List::Nil, create_empty_list());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_create_non_empty_list() {
|
fn test_create_non_empty_list() {
|
||||||
assert_ne!(create_empty_list(), create_non_empty_list())
|
assert_ne!(create_empty_list(), create_non_empty_list());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,6 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("total numbers received: {}", total_received);
|
println!("total numbers received: {}", total_received);
|
||||||
assert_eq!(total_received, queue_length)
|
assert_eq!(total_received, queue_length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue