From dea073d118807ca4bf0c5f6b476bad9343abfcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Sat, 23 Mar 2024 07:51:23 -0700 Subject: [PATCH] Sync pangram tests (#848) --- exercises/practice/pangram/.meta/tests.toml | 18 +++++++++++++++--- exercises/practice/pangram/pangram_test.cpp | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/exercises/practice/pangram/.meta/tests.toml b/exercises/practice/pangram/.meta/tests.toml index 8075c5ba3..10b5a335a 100644 --- a/exercises/practice/pangram/.meta/tests.toml +++ b/exercises/practice/pangram/.meta/tests.toml @@ -1,6 +1,13 @@ -# This is an auto-generated file. Regular comments will be removed when this -# file is regenerated. Regenerating will not touch any manually added keys, -# so comments can be added in a "comment" key. +# This is an auto-generated file. +# +# 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. [64f61791-508e-4f5c-83ab-05de042b0149] description = "empty sentence" @@ -31,3 +38,8 @@ description = "mixed case and punctuation" [2577bf54-83c8-402d-a64b-a2c0f7bb213a] description = "case insensitive" +include = false + +[7138e389-83e4-4c6e-8413-1e40a0076951] +description = "a-m and A-M are 26 different characters but not a pangram" +reimplements = "2577bf54-83c8-402d-a64b-a2c0f7bb213a" diff --git a/exercises/practice/pangram/pangram_test.cpp b/exercises/practice/pangram/pangram_test.cpp index 740082fbc..703352622 100644 --- a/exercises/practice/pangram/pangram_test.cpp +++ b/exercises/practice/pangram/pangram_test.cpp @@ -46,8 +46,8 @@ TEST_CASE("pangram_with_mixed_case_and_punctuation") REQUIRE(pangram::is_pangram("\"Five quacking Zephyrs jolt my wax bed.\"")); } -TEST_CASE("upper_and_lower_should_not_be_counted_separately") +TEST_CASE("a_to_m_and_A_to_M_are_26_different_characters_but_not_a_pangram") { - REQUIRE(!pangram::is_pangram("the quick brown fox jumps over with lazy FX")); + REQUIRE(!pangram::is_pangram("abcdefghijklm ABCDEFGHIJKLM")); } #endif