Skip to content

Commit

Permalink
fix: Added @ignore to the tests (#683)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
DerSimeon authored Oct 20, 2024
1 parent 0e52455 commit a64fcb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals

Expand All @@ -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))

Expand Down
Original file line number Diff line number Diff line change
@@ -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))
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import kotlin.test.Ignore
import kotlin.test.assertEquals
import kotlin.test.Test

Expand All @@ -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")
Expand Down

0 comments on commit a64fcb9

Please sign in to comment.