diff --git a/exercises/practice/resistor-color-duo/src/test/kotlin/ResistorColorDuoTest.kt b/exercises/practice/resistor-color-duo/src/test/kotlin/ResistorColorDuoTest.kt index 5693d90c..da248b87 100644 --- a/exercises/practice/resistor-color-duo/src/test/kotlin/ResistorColorDuoTest.kt +++ b/exercises/practice/resistor-color-duo/src/test/kotlin/ResistorColorDuoTest.kt @@ -1,3 +1,4 @@ +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -6,15 +7,19 @@ class ResistorColorDuoTest { @Test fun `brown and black`() = assertEquals(10, ResistorColorDuo.value(Color.BROWN, Color.BLACK)) + @Ignore @Test fun `blue and grey`() = assertEquals(68, ResistorColorDuo.value(Color.BLUE, Color.GREY)) + @Ignore @Test fun `yellow and violet`() = assertEquals(47, ResistorColorDuo.value(Color.YELLOW, Color.VIOLET)) + @Ignore @Test fun `orange and orange`() = assertEquals(33, ResistorColorDuo.value(Color.ORANGE, Color.ORANGE)) + @Ignore @Test fun `ignore additional colors`() = assertEquals(51, ResistorColorDuo.value(Color.GREEN, Color.BROWN, Color.ORANGE)) diff --git a/exercises/practice/resistor-color-trio/src/test/kotlin/ResistorColorTrioTest.kt b/exercises/practice/resistor-color-trio/src/test/kotlin/ResistorColorTrioTest.kt index aaec015d..9927d7bc 100644 --- a/exercises/practice/resistor-color-trio/src/test/kotlin/ResistorColorTrioTest.kt +++ b/exercises/practice/resistor-color-trio/src/test/kotlin/ResistorColorTrioTest.kt @@ -1,24 +1,30 @@ import kotlin.test.Test import kotlin.test.assertEquals import Color.* +import kotlin.test.Ignore class ResistorColorTrioTest { @Test fun `orange orange black`() = assertEquals("33 ohms", ResistorColorTrio.text(ORANGE, ORANGE, BLACK)) + @Ignore @Test fun `blue grey brown`() = assertEquals("680 ohms", ResistorColorTrio.text(BLUE, GREY, BROWN)) + @Ignore @Test fun `red black red`() = assertEquals("2 kiloohms", ResistorColorTrio.text(RED, BLACK, RED)) + @Ignore @Test fun `green brown orange`() = assertEquals("51 kiloohms", ResistorColorTrio.text(GREEN, BROWN, ORANGE)) + @Ignore @Test fun `yellow violet yellow`() = assertEquals("470 kiloohms", ResistorColorTrio.text(YELLOW, VIOLET, YELLOW)) + @Ignore @Test fun `yellow violet violet`() = assertEquals("470 megaohms", ResistorColorTrio.text(YELLOW, VIOLET, VIOLET)) } diff --git a/exercises/practice/resistor-color/src/test/kotlin/ResistorColorTest.kt b/exercises/practice/resistor-color/src/test/kotlin/ResistorColorTest.kt index 0b63e243..9f509076 100644 --- a/exercises/practice/resistor-color/src/test/kotlin/ResistorColorTest.kt +++ b/exercises/practice/resistor-color/src/test/kotlin/ResistorColorTest.kt @@ -1,3 +1,4 @@ +import kotlin.test.Ignore import kotlin.test.assertEquals import kotlin.test.Test @@ -6,12 +7,15 @@ class ResistorColorTest { @Test fun testBlackColorCode() = assertEquals(0, ResistorColor.colorCode("black")) + @Ignore @Test fun testWhiteColorCode() = assertEquals(9, ResistorColor.colorCode("white")) + @Ignore @Test fun testOrangeColorCode() = assertEquals(3, ResistorColor.colorCode("orange")) + @Ignore @Test fun testColors() { val expected = listOf("black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white")