From d120c59bffbc3ea9c19ddd129a4e7be8afaeb244 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 00:51:43 -0700 Subject: [PATCH] Sync isogram tests --- exercises/practice/isogram/.meta/tests.toml | 16 +++++++++++++--- exercises/practice/isogram/isogram_test.cpp | 9 +++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/exercises/practice/isogram/.meta/tests.toml b/exercises/practice/isogram/.meta/tests.toml index 7187c340..ba04c664 100644 --- a/exercises/practice/isogram/.meta/tests.toml +++ b/exercises/practice/isogram/.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. [a0e97d2d-669e-47c7-8134-518a1e2c4555] description = "empty string" @@ -40,3 +47,6 @@ description = "duplicated character in the middle" [310ac53d-8932-47bc-bbb4-b2b94f25a83e] description = "same first and last characters" + +[0d0b8644-0a1e-4a31-a432-2b3ee270d847] +description = "word with duplicated character and with two hyphens" diff --git a/exercises/practice/isogram/isogram_test.cpp b/exercises/practice/isogram/isogram_test.cpp index 7e8085b2..eeea4c83 100644 --- a/exercises/practice/isogram/isogram_test.cpp +++ b/exercises/practice/isogram/isogram_test.cpp @@ -127,4 +127,13 @@ TEST_CASE("same_first_and_last_characters") REQUIRE(expected == actual); } +TEST_CASE("word_with_duplicated_character_and_with_two_hyphens") +{ + const bool actual = isogram::is_isogram("up-to-date"); + + const bool expected {false}; + + REQUIRE(expected == actual); +} + #endif