File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
exercises/practice/isogram Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 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[a0e97d2d-669e-47c7-8134-518a1e2c4555 ]
613description = " empty string"
@@ -40,3 +47,6 @@ description = "duplicated character in the middle"
4047
4148[310ac53d-8932-47bc-bbb4-b2b94f25a83e ]
4249description = " same first and last characters"
50+
51+ [0d0b8644-0a1e-4a31-a432-2b3ee270d847 ]
52+ description = " word with duplicated character and with two hyphens"
Original file line number Diff line number Diff line change @@ -127,4 +127,13 @@ TEST_CASE("same_first_and_last_characters")
127127 REQUIRE (expected == actual);
128128}
129129
130+ TEST_CASE (" word_with_duplicated_character_and_with_two_hyphens" )
131+ {
132+ const bool actual = isogram::is_isogram (" up-to-date" );
133+
134+ const bool expected {false };
135+
136+ REQUIRE (expected == actual);
137+ }
138+
130139#endif
You can’t perform that action at this time.
0 commit comments