Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added @Ignore to the tests #683

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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