Skip to content

Commit d1a2a23

Browse files
authored
Sync tests from yacht (#2633)
1 parent 37bbd1b commit d1a2a23

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

exercises/practice/yacht/.meta/tests.toml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[3060e4a5-4063-4deb-a380-a630b43a84b6]
613
description = "Yacht"
@@ -29,6 +36,9 @@ description = "Yacht counted as threes"
2936
[464fc809-96ed-46e4-acb8-d44e302e9726]
3037
description = "Yacht of 3s counted as fives"
3138

39+
[d054227f-3a71-4565-a684-5c7e621ec1e9]
40+
description = "Fives"
41+
3242
[e8a036e0-9d21-443a-8b5f-e15a9e19a761]
3343
description = "Sixes"
3444

exercises/practice/yacht/src/test/java/YachtTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ public void yachtOfThreesCountedAsFives() {
6666
Yacht yacht = new Yacht(new int[]{ 3, 3, 3, 3, 3 }, YachtCategory.FIVES);
6767
assertThat(yacht.score()).isEqualTo(0);
6868
}
69+
70+
@Ignore("Remove to run test")
71+
@Test
72+
public void fives() {
73+
Yacht yacht = new Yacht(new int[]{ 1, 5, 3, 5, 3 }, YachtCategory.FIVES);
74+
assertThat(yacht.score()).isEqualTo(10);
75+
}
6976

7077
@Ignore("Remove to run test")
7178
@Test

0 commit comments

Comments
 (0)