From e6063fc6724749c0224d21a23dd6551f0f624f25 Mon Sep 17 00:00:00 2001 From: jagdish-15 Date: Tue, 19 Nov 2024 20:41:48 +0530 Subject: [PATCH] Sync Bob (#2870) This updates the Bob exercise to sync with the problem specifications. --- exercises/practice/bob/.meta/config.json | 1 + exercises/practice/bob/.meta/tests.toml | 18 +++++++++++++++--- .../practice/bob/src/test/java/BobTest.java | 14 +++++++------- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/exercises/practice/bob/.meta/config.json b/exercises/practice/bob/.meta/config.json index 22fda09a3..a86461574 100644 --- a/exercises/practice/bob/.meta/config.json +++ b/exercises/practice/bob/.meta/config.json @@ -7,6 +7,7 @@ "austinlyons", "c-thornton", "FridaTveit", + "jagdish-15", "jmrunkle", "jtigger", "kytrinyx", diff --git a/exercises/practice/bob/.meta/tests.toml b/exercises/practice/bob/.meta/tests.toml index 630485579..5299e2895 100644 --- a/exercises/practice/bob/.meta/tests.toml +++ b/exercises/practice/bob/.meta/tests.toml @@ -1,6 +1,13 @@ -# This is an auto-generated file. Regular comments will be removed when this -# file is regenerated. Regenerating will not touch any manually added keys, -# so comments can be added in a "comment" key. +# This is an auto-generated file. +# +# Regenerating this file via `configlet sync` will: +# - Recreate every `description` key/value pair +# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications +# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion) +# - Preserve any other key/value pair +# +# As user-added comments (using the # character) will be removed when this file +# is regenerated, comments can be added via a `comment` key. [e162fead-606f-437a-a166-d051915cea8e] description = "stating something" @@ -64,6 +71,7 @@ description = "alternate silence" [66953780-165b-4e7e-8ce3-4bcb80b6385a] description = "multiple line question" +include = false [5371ef75-d9ea-4103-bcfa-2da973ddec1b] description = "starting with whitespace" @@ -76,3 +84,7 @@ description = "other whitespace" [12983553-8601-46a8-92fa-fcaa3bc4a2a0] description = "non-question ending with whitespace" + +[2c7278ac-f955-4eb4-bf8f-e33eb4116a15] +description = "multiple line question" +reimplements = "66953780-165b-4e7e-8ce3-4bcb80b6385a" diff --git a/exercises/practice/bob/src/test/java/BobTest.java b/exercises/practice/bob/src/test/java/BobTest.java index c7a671206..801315b42 100644 --- a/exercises/practice/bob/src/test/java/BobTest.java +++ b/exercises/practice/bob/src/test/java/BobTest.java @@ -152,13 +152,6 @@ public void alternateSilence() { .isEqualTo("Fine. Be that way!"); } - @Disabled("Remove to run test") - @Test - public void multipleLineQuestion() { - assertThat(bob.hey("\nDoes this cryogenic chamber make me look fat?\nNo.")) - .isEqualTo("Whatever."); - } - @Disabled("Remove to run test") @Test public void startingWithWhitespace() { @@ -187,4 +180,11 @@ public void nonQuestionEndingWithWhiteSpace() { .isEqualTo("Whatever."); } + @Disabled("Remove to run test") + @Test + public void multipleLineQuestion() { + assertThat(bob.hey("\nDoes this cryogenic chamber make\n me look fat?")) + .isEqualTo("Sure."); + } + }