Updated bob tests.toml and regenerated test file. (#3840)
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
# This is an auto-generated file. Regular comments will be removed when this
|
# This is an auto-generated file.
|
||||||
# file is regenerated. Regenerating will not touch any manually added keys,
|
#
|
||||||
# so comments can be added in a "comment" key.
|
# 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]
|
[e162fead-606f-437a-a166-d051915cea8e]
|
||||||
description = "stating something"
|
description = "stating something"
|
||||||
@@ -64,6 +71,7 @@ description = "alternate silence"
|
|||||||
|
|
||||||
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
|
[66953780-165b-4e7e-8ce3-4bcb80b6385a]
|
||||||
description = "multiple line question"
|
description = "multiple line question"
|
||||||
|
include = false
|
||||||
|
|
||||||
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
|
[5371ef75-d9ea-4103-bcfa-2da973ddec1b]
|
||||||
description = "starting with whitespace"
|
description = "starting with whitespace"
|
||||||
@@ -76,3 +84,7 @@ description = "other whitespace"
|
|||||||
|
|
||||||
[12983553-8601-46a8-92fa-fcaa3bc4a2a0]
|
[12983553-8601-46a8-92fa-fcaa3bc4a2a0]
|
||||||
description = "non-question ending with whitespace"
|
description = "non-question ending with whitespace"
|
||||||
|
|
||||||
|
[2c7278ac-f955-4eb4-bf8f-e33eb4116a15]
|
||||||
|
description = "multiple line question"
|
||||||
|
reimplements = "66953780-165b-4e7e-8ce3-4bcb80b6385a"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# These tests are auto-generated with test data from:
|
# These tests are auto-generated with test data from:
|
||||||
# https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json
|
# https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json
|
||||||
# File last updated on 2023-07-20
|
# File last updated on 2025-01-10
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@@ -79,12 +79,6 @@ class BobTest(unittest.TestCase):
|
|||||||
def test_alternate_silence(self):
|
def test_alternate_silence(self):
|
||||||
self.assertEqual(response("\t\t\t\t\t\t\t\t\t\t"), "Fine. Be that way!")
|
self.assertEqual(response("\t\t\t\t\t\t\t\t\t\t"), "Fine. Be that way!")
|
||||||
|
|
||||||
def test_multiple_line_question(self):
|
|
||||||
self.assertEqual(
|
|
||||||
response("\nDoes this cryogenic chamber make me look fat?\nNo."),
|
|
||||||
"Whatever.",
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_starting_with_whitespace(self):
|
def test_starting_with_whitespace(self):
|
||||||
self.assertEqual(response(" hmmmmmmm..."), "Whatever.")
|
self.assertEqual(response(" hmmmmmmm..."), "Whatever.")
|
||||||
|
|
||||||
@@ -100,3 +94,8 @@ class BobTest(unittest.TestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response("This is a statement ending with whitespace "), "Whatever."
|
response("This is a statement ending with whitespace "), "Whatever."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_multiple_line_question(self):
|
||||||
|
self.assertEqual(
|
||||||
|
response("\nDoes this cryogenic chamber make\n me look fat?"), "Sure."
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user