From cb2fe41492102e979b8e2cee39adc6310d1e4c06 Mon Sep 17 00:00:00 2001 From: Kevin Berry Date: Thu, 20 Jun 2024 14:55:09 -0500 Subject: [PATCH] Add missing positive fives category test. --- exercises/practice/yacht/.meta/tests.toml | 3 +++ exercises/practice/yacht/yacht.spec.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/exercises/practice/yacht/.meta/tests.toml b/exercises/practice/yacht/.meta/tests.toml index 5aa349a8e6..e6003ee54c 100644 --- a/exercises/practice/yacht/.meta/tests.toml +++ b/exercises/practice/yacht/.meta/tests.toml @@ -29,6 +29,9 @@ description = "Yacht counted as threes" [464fc809-96ed-46e4-acb8-d44e302e9726] description = "Yacht of 3s counted as fives" +[d054227f-3a71-4565-a684-5c7e621ec1e9] +description = "Fives" + [e8a036e0-9d21-443a-8b5f-e15a9e19a761] description = "Sixes" diff --git a/exercises/practice/yacht/yacht.spec.js b/exercises/practice/yacht/yacht.spec.js index 6c6d2417e9..5554141a84 100644 --- a/exercises/practice/yacht/yacht.spec.js +++ b/exercises/practice/yacht/yacht.spec.js @@ -37,6 +37,10 @@ describe('Yacht', () => { expect(score([3, 3, 3, 3, 3], 'fives')).toEqual(0); }); + xtest('Fives', () => { + expect(score([1, 5, 3, 5, 3], 'fives')).toEqual(10); + }); + xtest('Sixes', () => { expect(score([2, 3, 4, 5, 6], 'sixes')).toEqual(6); });