@@ -12,7 +12,7 @@ class BobTests: XCTestCase {
12
12
13
13
func testShouting( ) {
14
14
let input = " WATCH OUT! "
15
- let expected = " Woah , chill out!"
15
+ let expected = " Whoa , chill out!"
16
16
let result = Bob . hey ( input)
17
17
XCTAssertEqual ( expected, result)
18
18
}
@@ -40,14 +40,14 @@ class BobTests: XCTestCase {
40
40
41
41
func testForcefulQuestions( ) {
42
42
let input = " WHAT THE HELL WERE YOU THINKING? "
43
- let expected = " Woah , chill out!"
43
+ let expected = " Whoa , chill out!"
44
44
let result = Bob . hey ( input)
45
45
XCTAssertEqual ( expected, result)
46
46
}
47
47
48
48
func testShoutingNumbers( ) {
49
49
let input = " 1, 2, 3 GO! "
50
- let expected = " Woah , chill out!"
50
+ let expected = " Whoa , chill out!"
51
51
let result = Bob . hey ( input)
52
52
XCTAssertEqual ( expected, result)
53
53
}
@@ -68,14 +68,14 @@ class BobTests: XCTestCase {
68
68
69
69
func testShoutingWithSpecialCharacters( ) {
70
70
let input = " ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1! "
71
- let expected = " Woah , chill out!"
71
+ let expected = " Whoa , chill out!"
72
72
let result = Bob . hey ( input)
73
73
XCTAssertEqual ( expected, result)
74
74
}
75
75
76
76
func testShoutingWithUmlautsCharacters( ) {
77
77
let input = " ÄMLÄTS! "
78
- let expected = " Woah , chill out!"
78
+ let expected = " Whoa , chill out!"
79
79
let result = Bob . hey ( input)
80
80
XCTAssertEqual ( expected, result)
81
81
}
@@ -89,7 +89,7 @@ class BobTests: XCTestCase {
89
89
90
90
func testShoutingWithNoExclamationmark( ) {
91
91
let input = " I HATE YOU "
92
- let expected = " Woah , chill out!"
92
+ let expected = " Whoa , chill out!"
93
93
let result = Bob . hey ( input)
94
94
XCTAssertEqual ( expected, result)
95
95
}
@@ -110,14 +110,14 @@ class BobTests: XCTestCase {
110
110
111
111
func testSilence( ) {
112
112
let input = " "
113
- let expected = " Fine, be that way. "
113
+ let expected = " Fine. Be that way! "
114
114
let result = Bob . hey ( input)
115
115
XCTAssertEqual ( expected, result)
116
116
}
117
117
118
118
func testProlongedSilence( ) {
119
119
let input = " "
120
- let expected = " Fine, be that way. "
120
+ let expected = " Fine. Be that way! "
121
121
let result = Bob . hey ( input)
122
122
XCTAssertEqual ( expected, result)
123
123
}
0 commit comments