Skip to content

Commit 3cb37cd

Browse files
authored
Sync tests for practice exercise resistor color duo (exercism#2612)
1 parent 2727382 commit 3cb37cd

2 files changed

Lines changed: 34 additions & 5 deletions

File tree

Lines changed: 16 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
[ce11995a-5b93-4950-a5e9-93423693b2fc]
613
description = "Brown and black"
@@ -11,8 +18,14 @@ description = "Blue and grey"
1118
[f1886361-fdfd-4693-acf8-46726fe24e0c]
1219
description = "Yellow and violet"
1320

21+
[b7a6cbd2-ae3c-470a-93eb-56670b305640]
22+
description = "White and red"
23+
1424
[77a8293d-2a83-4016-b1af-991acc12b9fe]
1525
description = "Orange and orange"
1626

1727
[0c4fb44f-db7c-4d03-afa8-054350f156a8]
1828
description = "Ignore additional colors"
29+
30+
[4a8ceec5-0ab4-4904-88a4-daf953a5e818]
31+
description = "Black and brown, one-digit"

exercises/practice/resistor-color-duo/src/test/java/ResistorColorDuoTest.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public void testBlueAndGrey() {
3030
@Ignore("Remove to run test")
3131
@Test
3232
public void testYellowAndViolet() {
33-
assertThat(resistorColorDuo.value(
34-
new String[]{ "yellow", "violet" })
33+
assertThat(
34+
resistorColorDuo.value(new String[]{ "yellow", "violet" })
3535
).isEqualTo(47);
3636
}
3737

@@ -42,6 +42,22 @@ public void testOrangeAndOrange() {
4242
resistorColorDuo.value(new String[]{ "orange", "orange" })
4343
).isEqualTo(33);
4444
}
45+
46+
@Ignore("Remove to run test")
47+
@Test
48+
public void testWhiteAndRed() {
49+
assertThat(
50+
resistorColorDuo.value(new String[]{ "white", "red" })
51+
).isEqualTo(92);
52+
}
53+
54+
@Ignore("Remove to run test")
55+
@Test
56+
public void testBlackAndBrownOneDigit() {
57+
assertThat(
58+
resistorColorDuo.value(new String[]{ "black", "brown" })
59+
).isEqualTo(1);
60+
}
4561

4662
@Ignore("Remove to run test")
4763
@Test

0 commit comments

Comments
 (0)