diff --git a/exercises/practice/bob/.meta/Sources/Bob/BobExample.swift b/exercises/practice/bob/.meta/Sources/Bob/BobExample.swift index c681e6a18..a1b931642 100644 --- a/exercises/practice/bob/.meta/Sources/Bob/BobExample.swift +++ b/exercises/practice/bob/.meta/Sources/Bob/BobExample.swift @@ -60,6 +60,8 @@ struct Bob { static func hey(_ input: String) -> String { if input.trimWhiteSpace().isEmpty { return "Fine. Be that way!" + } else if input.isShouting && input.isQuestion { + return "Calm down, I know what I'm doing!" } else if input.isShouting { return "Whoa, chill out!" } else if input.isQuestion { diff --git a/exercises/practice/bob/Tests/BobTests/BobTests.swift b/exercises/practice/bob/Tests/BobTests/BobTests.swift index 2e9d1bc8d..f46b7c13b 100644 --- a/exercises/practice/bob/Tests/BobTests/BobTests.swift +++ b/exercises/practice/bob/Tests/BobTests/BobTests.swift @@ -40,7 +40,7 @@ class BobTests: XCTestCase { func testForcefulQuestions() { let input = "WHAT THE HELL WERE YOU THINKING?" - let expected = "Whoa, chill out!" + let expected = "Calm down, I know what I'm doing!" let result = Bob.hey(input) XCTAssertEqual(expected, result) }