Skip to content

Commit

Permalink
Adding tests for isogram
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish-15 committed Jan 11, 2025
1 parent e61ab87 commit f7601fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions exercises/practice/isogram/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"contributors": [
"amscotti",
"ankorGH",
"jagdish-15",
"matthewmorgan",
"ovidiu141",
"PakkuDon",
Expand Down
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"
4 changes: 4 additions & 0 deletions exercises/practice/isogram/isogram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ describe('Isogram', () => {
xtest('same first and last characters', () => {
expect(isIsogram('angola')).toEqual(false);
});

xtest('word with duplicated character and with two hyphens', () => {
expect(isIsogram('up-to-date')).toEqual(false);
});
});
});

0 comments on commit f7601fa

Please sign in to comment.