Skip to content

Commit f96dba9

Browse files
committed
Add new test. resistor with decimal values
1 parent ae8a886 commit f96dba9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exercises/practice/resistor-color-trio/src/test/java/ResistorColorTrioTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,12 @@ public void testIgnoreExtraColors() {
9090
resistorColorTrio.label(new String[]{"blue", "green", "yellow", "orange"})
9191
).isEqualTo("650 kiloohms");
9292
}
93+
94+
@Disabled("Remove to run test")
95+
@Test
96+
public void testOrangeAndOrangeAndRed() {
97+
assertThat(
98+
resistorColorTrio.label(new String[]{"orange", "orange", "red"})
99+
).isEqualTo("3.3 kiloohms");
100+
}
93101
}

0 commit comments

Comments
 (0)