Skip to content

Commit

Permalink
Add missing positive fives category test.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEdwardBerry committed Jun 20, 2024
1 parent 7bbd01d commit cb2fe41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exercises/practice/yacht/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions exercises/practice/yacht/yacht.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit cb2fe41

Please sign in to comment.