Skip to content

Commit 15e271b

Browse files
BNAndrasvaeng
authored andcommitted
Sync isogram tests (#849)
1 parent 0b05a6d commit 15e271b

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

exercises/practice/isogram/.meta/tests.toml

Lines changed: 13 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
[a0e97d2d-669e-47c7-8134-518a1e2c4555]
613
description = "empty string"
@@ -40,3 +47,6 @@ description = "duplicated character in the middle"
4047

4148
[310ac53d-8932-47bc-bbb4-b2b94f25a83e]
4249
description = "same first and last characters"
50+
51+
[0d0b8644-0a1e-4a31-a432-2b3ee270d847]
52+
description = "word with duplicated character and with two hyphens"

exercises/practice/isogram/isogram_test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)