From a500683ce7858aa9e26993fb3ee92ad9ca34c653 Mon Sep 17 00:00:00 2001 From: Slipp Douglas Thompson Date: Fri, 27 Jan 2023 05:37:18 -0600 Subject: [PATCH] Fixed bob exercise's testForcefulQuestions test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed testForcefulQuestions test to expect `@"Calm down, I know what I'm doing!"` to meet the execise's requirement “He answers 'Calm down, I know what I'm doing!' if you yell a question at him.” * Deleted `description.md` previously “pinned” in 6c96e6ab3ae6d3cb585beab4eb9f2bb8a2f168a, which didn't seem to work correctly. ‣ The pinned description was neither being used for `README.md` generation nor for the instructions on the website at https://exercism.org/tracks/objective-c/exercises/bob . --- exercises/practice/bob/.meta/description.md | 12 ------------ exercises/practice/bob/BobTest.m | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 exercises/practice/bob/.meta/description.md diff --git a/exercises/practice/bob/.meta/description.md b/exercises/practice/bob/.meta/description.md deleted file mode 100644 index a889ec9..0000000 --- a/exercises/practice/bob/.meta/description.md +++ /dev/null @@ -1,12 +0,0 @@ -# Description - -Bob is a lackadaisical teenager. In conversation, his responses are very limited. - -Bob answers 'Sure.' if you ask him a question. - -He answers 'Whoa, chill out!' if you yell at him. - -He says 'Fine. Be that way!' if you address him without actually saying -anything. - -He answers 'Whatever.' to anything else. diff --git a/exercises/practice/bob/BobTest.m b/exercises/practice/bob/BobTest.m index e787be4..0bd2fca 100644 --- a/exercises/practice/bob/BobTest.m +++ b/exercises/practice/bob/BobTest.m @@ -55,7 +55,7 @@ - (void)testUsingAcronyms { - (void)testForcefulQuestions { NSString *input = @"WHAT THE HELL WERE YOU THINKING?"; - NSString *expected = @"Whoa, chill out!"; + NSString *expected = @"Calm down, I know what I'm doing!"; NSString *result = [[self bob] hey:input]; XCTAssertEqualObjects(expected, result); }