Skip to content

Commit 9067706

Browse files
IsaacGvaeng
andauthored
Sync tests for exercise/practice/bob (#958)
* Sync tests for exercise/practice/bob * fix: add uids --------- Co-authored-by: vaeng <34183939+vaeng@users.noreply.github.com>
1 parent 8ef5867 commit 9067706

File tree

2 files changed

+63
-30
lines changed

2 files changed

+63
-30
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.cpp

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,97 +7,118 @@
77

88
// Bob exercise test case data version 1.4.0
99

10-
TEST_CASE("stating_something") {
10+
TEST_CASE("stating_something", "[e162fead-606f-437a-a166-d051915cea8e]") {
1111
REQUIRE("Whatever." == bob::hey("Tom-ay-to, tom-aaaah-to."));
1212
}
1313

1414
#if defined(EXERCISM_RUN_ALL_TESTS)
15-
TEST_CASE("shouting") { REQUIRE("Whoa, chill out!" == bob::hey("WATCH OUT!")); }
15+
TEST_CASE("shouting", "[73a966dc-8017-47d6-bb32-cf07d1a5fcd9]") {
16+
REQUIRE("Whoa, chill out!" == bob::hey("WATCH OUT!"));
17+
}
1618

17-
TEST_CASE("shouting_gibberish") {
19+
TEST_CASE("shouting_gibberish", "[d6c98afd-df35-4806-b55e-2c457c3ab748]") {
1820
REQUIRE("Whoa, chill out!" == bob::hey("FCECDFCAAB"));
1921
}
2022

21-
TEST_CASE("asking_a_question") {
23+
TEST_CASE("asking_a_question", "[8a2e771d-d6f1-4e3f-b6c6-b41495556e37]") {
2224
REQUIRE("Sure." ==
2325
bob::hey("Does this cryogenic chamber make me look fat?"));
2426
}
2527

26-
TEST_CASE("asking_a_numeric_question") {
28+
TEST_CASE("asking_a_numeric_question",
29+
"[81080c62-4e4d-4066-b30a-48d8d76920d9]") {
2730
REQUIRE("Sure." == bob::hey("You are, what, like 15?"));
2831
}
2932

30-
TEST_CASE("asking_gibberish") { REQUIRE("Sure." == bob::hey("fffbbcbeab?")); }
33+
TEST_CASE("asking_gibberish", "[2a02716d-685b-4e2e-a804-2adaf281c01e]") {
34+
REQUIRE("Sure." == bob::hey("fffbbcbeab?"));
35+
}
3136

32-
TEST_CASE("talking_forcefully") {
37+
TEST_CASE("talking_forcefully", "[c02f9179-ab16-4aa7-a8dc-940145c385f7]") {
3338
REQUIRE("Whatever." == bob::hey("Let's go make out behind the gym!"));
3439
}
3540

36-
TEST_CASE("using_acronyms_in_regular_speech") {
41+
TEST_CASE("using_acronyms_in_regular_speech",
42+
"[153c0e25-9bb5-4ec5-966e-598463658bcd]") {
3743
REQUIRE("Whatever." ==
3844
bob::hey("It's OK if you don't want to go to the DMV."));
3945
}
4046

41-
TEST_CASE("forceful_questions") {
47+
TEST_CASE("forceful_questions", "[a5193c61-4a92-4f68-93e2-f554eb385ec6]") {
4248
REQUIRE("Calm down, I know what I'm doing!" ==
4349
bob::hey("WHAT THE HELL WERE YOU THINKING?"));
4450
}
4551

46-
TEST_CASE("shouting_numbers") {
52+
TEST_CASE("shouting_numbers", "[a20e0c54-2224-4dde-8b10-bd2cdd4f61bc]") {
4753
REQUIRE("Whoa, chill out!" == bob::hey("1, 2, 3 GO!"));
4854
}
4955

50-
TEST_CASE("no_letters") { REQUIRE("Whatever." == bob::hey("1, 2, 3")); }
56+
TEST_CASE("no_letters", "[f7bc4b92-bdff-421e-a238-ae97f230ccac]") {
57+
REQUIRE("Whatever." == bob::hey("1, 2, 3"));
58+
}
5159

52-
TEST_CASE("question_with_no_letters") { REQUIRE("Sure." == bob::hey("4?")); }
60+
TEST_CASE("question_with_no_letters",
61+
"[bb0011c5-cd52-4a5b-8bfb-a87b6283b0e2]") {
62+
REQUIRE("Sure." == bob::hey("4?"));
63+
}
5364

54-
TEST_CASE("shouting_with_special_characters") {
65+
TEST_CASE("shouting_with_special_characters",
66+
"[496143c8-1c31-4c01-8a08-88427af85c66]") {
5567
REQUIRE("Whoa, chill out!" ==
5668
bob::hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"));
5769
}
5870

59-
TEST_CASE("shouting_with_no_exclamation_mark") {
71+
TEST_CASE("shouting_with_no_exclamation_mark",
72+
"[e6793c1c-43bd-4b8d-bc11-499aea73925f]") {
6073
REQUIRE("Whoa, chill out!" == bob::hey("I HATE THE DMV"));
6174
}
6275

63-
TEST_CASE("statement_containing_question_mark") {
76+
TEST_CASE("statement_containing_question_mark",
77+
"[aa8097cc-c548-4951-8856-14a404dd236a]") {
6478
REQUIRE("Whatever." == bob::hey("Ending with ? means a question."));
6579
}
6680

67-
TEST_CASE("non_letters_with_question") { REQUIRE("Sure." == bob::hey(":) ?")); }
81+
TEST_CASE("non_letters_with_question",
82+
"[9bfc677d-ea3a-45f2-be44-35bc8fa3753e]") {
83+
REQUIRE("Sure." == bob::hey(":) ?"));
84+
}
6885

69-
TEST_CASE("prattling_on") {
86+
TEST_CASE("prattling_on", "[8608c508-f7de-4b17-985b-811878b3cf45]") {
7087
REQUIRE("Sure." == bob::hey("Wait! Hang on. Are you going to be OK?"));
7188
}
7289

73-
TEST_CASE("silence") { REQUIRE("Fine. Be that way!" == bob::hey("")); }
90+
TEST_CASE("silence", "[bc39f7c6-f543-41be-9a43-fd1c2f753fc0]") {
91+
REQUIRE("Fine. Be that way!" == bob::hey(""));
92+
}
7493

75-
TEST_CASE("prolonged_silence") {
94+
TEST_CASE("prolonged_silence", "[d6c47565-372b-4b09-b1dd-c40552b8378b]") {
7695
REQUIRE("Fine. Be that way!" == bob::hey(" "));
7796
}
7897

79-
TEST_CASE("alternate_silence") {
98+
TEST_CASE("alternate_silence", "[4428f28d-4100-4d85-a902-e5a78cb0ecd3]") {
8099
REQUIRE("Fine. Be that way!" == bob::hey("\t\t\t\t\t\t\t\t\t\t"));
81100
}
82101

83-
TEST_CASE("multiple_line_question") {
84-
REQUIRE("Whatever." ==
85-
bob::hey("\nDoes this cryogenic chamber make me look fat?\nNo."));
102+
TEST_CASE("multiple_line_question", "[2c7278ac-f955-4eb4-bf8f-e33eb4116a15]") {
103+
REQUIRE("Sure." ==
104+
bob::hey("\nDoes this cryogenic chamber make\n me look fat?"));
86105
}
87106

88-
TEST_CASE("starting_with_whitespace") {
107+
TEST_CASE("starting_with_whitespace",
108+
"[5371ef75-d9ea-4103-bcfa-2da973ddec1b]") {
89109
REQUIRE("Whatever." == bob::hey(" hmmmmmmm..."));
90110
}
91111

92-
TEST_CASE("ending_with_whitespace") {
112+
TEST_CASE("ending_with_whitespace", "[05b304d6-f83b-46e7-81e0-4cd3ca647900]") {
93113
REQUIRE("Sure." == bob::hey("Okay if like my spacebar quite a bit? "));
94114
}
95115

96-
TEST_CASE("other_whitespace") {
116+
TEST_CASE("other_whitespace", "[72bd5ad3-9b2f-4931-a988-dce1f5771de2]") {
97117
REQUIRE("Fine. Be that way!" == bob::hey("\n\r \t"));
98118
}
99119

100-
TEST_CASE("non_question_ending_with_whitespace") {
120+
TEST_CASE("non_question_ending_with_whitespace",
121+
"[12983553-8601-46a8-92fa-fcaa3bc4a2a0]") {
101122
REQUIRE("Whatever." ==
102123
bob::hey("This is a statement ending with whitespace "));
103124
}

0 commit comments

Comments
 (0)