From f7601fa7c4141e135b1f1b3497131209e23a587f Mon Sep 17 00:00:00 2001 From: Jagdish Prajapati Date: Sat, 11 Jan 2025 17:42:34 +0530 Subject: [PATCH] Adding tests for isogram --- exercises/practice/isogram/.meta/config.json | 1 + exercises/practice/isogram/.meta/tests.toml | 16 +++++++++++++--- exercises/practice/isogram/isogram.spec.js | 4 ++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/exercises/practice/isogram/.meta/config.json b/exercises/practice/isogram/.meta/config.json index 272e02bc77..486f11ad0b 100644 --- a/exercises/practice/isogram/.meta/config.json +++ b/exercises/practice/isogram/.meta/config.json @@ -3,6 +3,7 @@ "contributors": [ "amscotti", "ankorGH", + "jagdish-15", "matthewmorgan", "ovidiu141", "PakkuDon", diff --git a/exercises/practice/isogram/.meta/tests.toml b/exercises/practice/isogram/.meta/tests.toml index 7187c340a3..ba04c6645d 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.spec.js b/exercises/practice/isogram/isogram.spec.js index c3443760c3..1b0162c717 100644 --- a/exercises/practice/isogram/isogram.spec.js +++ b/exercises/practice/isogram/isogram.spec.js @@ -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); + }); }); });