From 3212f67de7cb72ce5a3aa3c2509c57305f057f1e Mon Sep 17 00:00:00 2001 From: Jagdish Prajapati Date: Sat, 11 Jan 2025 17:10:41 +0530 Subject: [PATCH] Updating tests for dominoes --- exercises/practice/dominoes/.meta/config.json | 1 + exercises/practice/dominoes/.meta/tests.toml | 16 +++++++++++++--- exercises/practice/dominoes/dominoes.spec.js | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/exercises/practice/dominoes/.meta/config.json b/exercises/practice/dominoes/.meta/config.json index e473943ef2..e09fdcb27b 100644 --- a/exercises/practice/dominoes/.meta/config.json +++ b/exercises/practice/dominoes/.meta/config.json @@ -3,6 +3,7 @@ "chauchakching" ], "contributors": [ + "jagdish-15", "SleeplessByte" ], "files": { diff --git a/exercises/practice/dominoes/.meta/tests.toml b/exercises/practice/dominoes/.meta/tests.toml index 23ff84f906..08c8e08d02 100644 --- a/exercises/practice/dominoes/.meta/tests.toml +++ b/exercises/practice/dominoes/.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. [31a673f2-5e54-49fe-bd79-1c1dae476c9c] description = "empty input = empty output" @@ -37,3 +44,6 @@ description = "separate loops" [cd061538-6046-45a7-ace9-6708fe8f6504] description = "nine elements" + +[44704c7c-3adb-4d98-bd30-f45527cf8b49] +description = "separate three-domino loops" diff --git a/exercises/practice/dominoes/dominoes.spec.js b/exercises/practice/dominoes/dominoes.spec.js index 4d18bba2f9..a99eb0663b 100644 --- a/exercises/practice/dominoes/dominoes.spec.js +++ b/exercises/practice/dominoes/dominoes.spec.js @@ -178,4 +178,18 @@ describe('Dominoes', () => { true, ); }); + + xdescribe('separate three-domino loops', () => { + runTest( + [ + [1, 2], + [2, 3], + [3, 1], + [4, 5], + [5, 6], + [6, 4], + ], + false, + ); + }); });