Skip to content

Commit e6063fc

Browse files
authored
Sync Bob (#2870)
This updates the Bob exercise to sync with the problem specifications.
1 parent fc8e166 commit e6063fc

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

exercises/practice/bob/.meta/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"austinlyons",
88
"c-thornton",
99
"FridaTveit",
10+
"jagdish-15",
1011
"jmrunkle",
1112
"jtigger",
1213
"kytrinyx",

exercises/practice/bob/.meta/tests.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[e162fead-606f-437a-a166-d051915cea8e]
613
description = "stating something"
@@ -64,6 +71,7 @@ description = "alternate silence"
6471

6572
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
6673
description = "multiple line question"
74+
include = false
6775

6876
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
6977
description = "starting with whitespace"
@@ -76,3 +84,7 @@ description = "other whitespace"
7684

7785
[12983553-8601-46a8-92fa-fcaa3bc4a2a0]
7886
description = "non-question ending with whitespace"
87+
88+
[2c7278ac-f955-4eb4-bf8f-e33eb4116a15]
89+
description = "multiple line question"
90+
reimplements = "66953780-165b-4e7e-8ce3-4bcb80b6385a"

exercises/practice/bob/src/test/java/BobTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,6 @@ public void alternateSilence() {
152152
.isEqualTo("Fine. Be that way!");
153153
}
154154

155-
@Disabled("Remove to run test")
156-
@Test
157-
public void multipleLineQuestion() {
158-
assertThat(bob.hey("\nDoes this cryogenic chamber make me look fat?\nNo."))
159-
.isEqualTo("Whatever.");
160-
}
161-
162155
@Disabled("Remove to run test")
163156
@Test
164157
public void startingWithWhitespace() {
@@ -187,4 +180,11 @@ public void nonQuestionEndingWithWhiteSpace() {
187180
.isEqualTo("Whatever.");
188181
}
189182

183+
@Disabled("Remove to run test")
184+
@Test
185+
public void multipleLineQuestion() {
186+
assertThat(bob.hey("\nDoes this cryogenic chamber make\n me look fat?"))
187+
.isEqualTo("Sure.");
188+
}
189+
190190
}

0 commit comments

Comments
 (0)