Skip to content

Commit 552179c

Browse files
authored
Sync Bob tests (#886)
1 parent 8988d13 commit 552179c

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
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/BobTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,18 +249,6 @@ public function testAlternateSilence(): void
249249
$this->assertEquals($expected, $subject->respondTo($input));
250250
}
251251

252-
/**
253-
* uuid: 66953780-165b-4e7e-8ce3-4bcb80b6385a
254-
* @testdox multiple line question
255-
*/
256-
public function testMultipleLineQuestion(): void
257-
{
258-
$input = "\nDoes this cryogenic chamber make me look fat?\nNo.";
259-
$expected = "Whatever.";
260-
$subject = new Bob();
261-
$this->assertEquals($expected, $subject->respondTo($input));
262-
}
263-
264252
/**
265253
* uuid: 5371ef75-d9ea-4103-bcfa-2da973ddec1b
266254
* @testdox starting with whitespace
@@ -308,4 +296,16 @@ public function testNonQuestionEndingWithWhitespace(): void
308296
$subject = new Bob();
309297
$this->assertEquals($expected, $subject->respondTo($input));
310298
}
299+
300+
/**
301+
* uuid: 2c7278ac-f955-4eb4-bf8f-e33eb4116a15
302+
* @testdox multiple line question
303+
*/
304+
public function testMultipleLineQuestion(): void
305+
{
306+
$input = "\nDoes this cryogenic chamber make\n me look fat?";
307+
$expected = "Sure.";
308+
$subject = new Bob();
309+
$this->assertEquals($expected, $subject->respondTo($input));
310+
}
311311
}

0 commit comments

Comments
 (0)