Skip to content

Commit

Permalink
Sync Bob (#2870)
Browse files Browse the repository at this point in the history
This updates the Bob exercise to sync with the problem specifications.
  • Loading branch information
jagdish-15 authored Nov 19, 2024
1 parent fc8e166 commit e6063fc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions exercises/practice/bob/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"austinlyons",
"c-thornton",
"FridaTveit",
"jagdish-15",
"jmrunkle",
"jtigger",
"kytrinyx",
Expand Down
18 changes: 15 additions & 3 deletions exercises/practice/bob/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
14 changes: 7 additions & 7 deletions exercises/practice/bob/src/test/java/BobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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.");
}

}

0 comments on commit e6063fc

Please sign in to comment.