Skip to content

Commit 0b05a6d

Browse files
BNAndrasvaeng
authored andcommitted
Sync pangram tests (#848)
1 parent a913458 commit 0b05a6d

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

exercises/practice/pangram/.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
[64f61791-508e-4f5c-83ab-05de042b0149]
613
description = "empty sentence"
@@ -31,3 +38,8 @@ description = "mixed case and punctuation"
3138

3239
[2577bf54-83c8-402d-a64b-a2c0f7bb213a]
3340
description = "case insensitive"
41+
include = false
42+
43+
[7138e389-83e4-4c6e-8413-1e40a0076951]
44+
description = "a-m and A-M are 26 different characters but not a pangram"
45+
reimplements = "2577bf54-83c8-402d-a64b-a2c0f7bb213a"

exercises/practice/pangram/pangram_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ TEST_CASE("pangram_with_mixed_case_and_punctuation")
4646
REQUIRE(pangram::is_pangram("\"Five quacking Zephyrs jolt my wax bed.\""));
4747
}
4848

49-
TEST_CASE("upper_and_lower_should_not_be_counted_separately")
49+
TEST_CASE("a_to_m_and_A_to_M_are_26_different_characters_but_not_a_pangram")
5050
{
51-
REQUIRE(!pangram::is_pangram("the quick brown fox jumps over with lazy FX"));
51+
REQUIRE(!pangram::is_pangram("abcdefghijklm ABCDEFGHIJKLM"));
5252
}
5353
#endif

0 commit comments

Comments
 (0)