From da9e84e5b3a449935eaaa03b12fafc62f43e64a3 Mon Sep 17 00:00:00 2001 From: Oleks Date: Thu, 14 Nov 2024 09:14:41 +0100 Subject: [PATCH] Let multi line question example be one sentence Using multiple sentences is a bit ambiguous in this exercise, in general. This is especially so, if we follow a sentence with a question mark by a sentence with a dot. To avoid that ambiguity gettting in the way of showcasing the intended way to handle multi-line queries, let this example use just one sentence, but let it spread over multiple lines. Disucssion: https://forum.exercism.org/t/bob-exercise-text-should-mention-linebreak-handling/13582/17 --- exercises/bob/canonical-data.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exercises/bob/canonical-data.json b/exercises/bob/canonical-data.json index a6cc254a73..a9f7e44db0 100644 --- a/exercises/bob/canonical-data.json +++ b/exercises/bob/canonical-data.json @@ -225,6 +225,17 @@ "heyBob": "This is a statement ending with whitespace " }, "expected": "Whatever." + }, + { + "uuid": "2c7278ac-f955-4eb4-bf8f-e33eb4116a15", + "reimplements": "66953780-165b-4e7e-8ce3-4bcb80b6385a", + "description": "multiple line question", + "comments": ["Use one sentence, spanning multiple lines."], + "property": "response", + "input": { + "heyBob": "\nDoes this cryogenic chamber make\n me look fat?" + }, + "expected": "Sure." } ] }