Skip to content

Commit

Permalink
Sync isogram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Mar 23, 2024
1 parent 6bcfce7 commit d120c59
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
16 changes: 13 additions & 3 deletions exercises/practice/isogram/.meta/tests.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
9 changes: 9 additions & 0 deletions exercises/practice/isogram/isogram_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d120c59

Please sign in to comment.