Skip to content

Commit f94d0fd

Browse files
authored
Updated bob tests.toml and regenerated test file. (exercism#3840)
1 parent 07bf542 commit f94d0fd

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

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/bob_test.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These tests are auto-generated with test data from:
22
# https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json
3-
# File last updated on 2023-07-20
3+
# File last updated on 2025-01-10
44

55
import unittest
66

@@ -79,12 +79,6 @@ def test_prolonged_silence(self):
7979
def test_alternate_silence(self):
8080
self.assertEqual(response("\t\t\t\t\t\t\t\t\t\t"), "Fine. Be that way!")
8181

82-
def test_multiple_line_question(self):
83-
self.assertEqual(
84-
response("\nDoes this cryogenic chamber make me look fat?\nNo."),
85-
"Whatever.",
86-
)
87-
8882
def test_starting_with_whitespace(self):
8983
self.assertEqual(response(" hmmmmmmm..."), "Whatever.")
9084

@@ -100,3 +94,8 @@ def test_non_question_ending_with_whitespace(self):
10094
self.assertEqual(
10195
response("This is a statement ending with whitespace "), "Whatever."
10296
)
97+
98+
def test_multiple_line_question(self):
99+
self.assertEqual(
100+
response("\nDoes this cryogenic chamber make\n me look fat?"), "Sure."
101+
)

0 commit comments

Comments
 (0)