Skip to content

Commit 0b469a7

Browse files
committed
Rust: Bob: Re-add unit test skips
I accidentally removed them in #367.
1 parent 77bba79 commit 0b469a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assignments/rust/bob/bob_test.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,55 @@ extern mod std;
66
mod bob;
77

88
#[test]
9+
#[should_fail]
910
fn test_statement() {
1011
assert_eq!("Whatever.", bob::reply("Tom-ay-to, tom-aaaah-to."));
1112
}
1213

1314
#[test]
15+
#[should_fail]
1416
fn test_shouting() {
1517
assert_eq!("Woah, chill out!", bob::reply("WATCH OUT!"));
1618
}
1719

1820
#[test]
21+
#[should_fail]
1922
fn test_exclaiming() {
2023
assert_eq!("Whatever.", bob::reply("Let's go make out behind the gym!"));
2124
}
2225

2326
#[test]
27+
#[should_fail]
2428
fn test_asking() {
2529
assert_eq!("Sure.", bob::reply("Does this cryogenic chamber make me look fat?"));
2630
}
2731

2832
#[test]
33+
#[should_fail]
2934
fn test_shout_numbers() {
3035
assert_eq!("Woah, chill out!", bob::reply("1, 2, 3 GO!"));
3136
}
3237

3338
#[test]
39+
#[should_fail]
3440
fn test_shout_weird_characters() {
3541
assert_eq!("Woah, chill out!", bob::reply("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"));
3642
}
3743

3844
#[test]
45+
#[should_fail]
3946
fn test_shout_without_punctuation() {
4047
assert_eq!("Woah, chill out!", bob::reply("I HATE YOU"));
4148
}
4249

4350
#[test]
51+
#[should_fail]
4452
fn test_shout_without_question_mark() {
4553
assert_eq!("Whatever.", bob::reply("Ending with ? means a question."));
4654
}
4755

4856
#[test]
57+
#[should_fail]
4958
fn test_silent_treatment() {
5059
assert_eq!("Fine. Be that way.", bob::reply(""));
5160
}

0 commit comments

Comments
 (0)