Skip to content

Commit

Permalink
fix: Added @ignore to the tests (#675)
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 ac21025 commit 2f8186b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions exercises/practice/darts/src/test/kotlin/DartsTest.kt
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,39 +7,51 @@ class DartsTest {
@Test
fun `missed target`() = assertEquals(0, Darts.score(-9, 9))

@Ignore
@Test
fun `on the outer circle`() = assertEquals(1, Darts.score(0, 10))

@Ignore
@Test
fun `on the middle circle`() = assertEquals(5, Darts.score(-5, 0))

@Ignore
@Test
fun `on the inner circle`() = assertEquals(10, Darts.score(0, -1))

@Ignore
@Test
fun `exactly on centre`() = assertEquals(10, Darts.score(0, 0))

@Ignore
@Test
fun `near the centre`() = assertEquals(10, Darts.score(-0.1, -0.1))

@Ignore
@Test
fun `just within the inner circle`() = assertEquals(10, Darts.score(0.7, 0.7))

@Ignore
@Test
fun `just outside the inner circle`() = assertEquals(5, Darts.score(0.8, -0.8))

@Ignore
@Test
fun `just within the middle circle`() = assertEquals(5, Darts.score(-3.5, 3.5))

@Ignore
@Test
fun `just outside the middle circle`() = assertEquals(1, Darts.score(-3.6, -3.6))

@Ignore
@Test
fun `just within the outer circle`() = assertEquals(1, Darts.score(-7.0, 7.0))

@Ignore
@Test
fun `just outside the outer circle`() = assertEquals(0, Darts.score(7.1, -7.1))

@Ignore
@Test
fun `asymmetric position between the inner and middle circles`() = assertEquals(5, Darts.score(0.5, -4))
}

0 comments on commit 2f8186b

Please sign in to comment.