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 #677

Merged
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
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