Skip to content

Commit

Permalink
fix: Added @ignore to the tests (#677)
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 1775753 commit ff80bad
Showing 1 changed file with 19 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
import kotlin.test.assertTrue
Expand All @@ -7,57 +8,74 @@ class DndCharacterTest {
@Test
fun `ability modifier for score 3 is n4`() = assertEquals(-4, DndCharacter.modifier(3))

@Ignore
@Test
fun `ability modifier for score 4 is n3`() = assertEquals(-3, DndCharacter.modifier(4))

@Ignore
@Test
fun `ability modifier for score 5 is n3`() = assertEquals(-3, DndCharacter.modifier(5))

@Ignore
@Test
fun `ability modifier for score 6 is n2`() = assertEquals(-2, DndCharacter.modifier(6))

@Ignore
@Test
fun `ability modifier for score 7 is n2`() = assertEquals(-2, DndCharacter.modifier(7))

@Ignore
@Test
fun `ability modifier for score 8 is n1`() = assertEquals(-1, DndCharacter.modifier(8))

@Ignore
@Test
fun `ability modifier for score 9 is n1`() = assertEquals(-1, DndCharacter.modifier(9))

@Ignore
@Test
fun `ability modifier for score 10 is 0`() = assertEquals(0, DndCharacter.modifier(10))

@Ignore
@Test
fun `ability modifier for score 11 is 0`() = assertEquals(0, DndCharacter.modifier(11))

@Ignore
@Test
fun `ability modifier for score 12 is 1`() = assertEquals(1, DndCharacter.modifier(12))

@Ignore
@Test
fun `ability modifier for score 13 is 1`() = assertEquals(1, DndCharacter.modifier(13))

@Ignore
@Test
fun `ability modifier for score 14 is 2`() = assertEquals(2, DndCharacter.modifier(14))

@Ignore
@Test
fun `ability modifier for score 15 is 2`() = assertEquals(2, DndCharacter.modifier(15))

@Ignore
@Test
fun `ability modifier for score 16 is 3`() = assertEquals(3, DndCharacter.modifier(16))

@Ignore
@Test
fun `ability modifier for score 17 is 3`() = assertEquals(3, DndCharacter.modifier(17))

@Ignore
@Test
fun `ability modifier for score 18 is 4`() = assertEquals(4, DndCharacter.modifier(18))

@Ignore
@Test
fun `random ability is within range`() {
val score = DndCharacter.ability()
assertTrue(score in (3..18))
}

@Ignore
@Test
fun `random character is valid`() {
with (DndCharacter()) {
Expand All @@ -71,6 +89,7 @@ class DndCharacterTest {
}
}

@Ignore
@Test
fun `each ability is only calculated once`() {
val char = DndCharacter()
Expand Down

0 comments on commit ff80bad

Please sign in to comment.