Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Apr 21, 2024
1 parent e31864e commit b3bf377
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package dartzee.screen.game.x01

import com.github.alyssaburlton.swingtest.findChild
import dartzee.core.bean.NumberField
import dartzee.game.FinishType
import dartzee.game.X01Config
import dartzee.game.state.X01PlayerState
Expand All @@ -11,6 +13,8 @@ import dartzee.`object`.Dart
import dartzee.screen.game.AbstractGameStatisticsPanelTest
import dartzee.screen.game.getRowIndex
import dartzee.screen.game.getValueForRow
import dartzee.utils.InjectedThings
import io.kotest.matchers.nulls.shouldBeNull
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test

Expand All @@ -33,6 +37,14 @@ class TestGameStatisticsPanelX01 :
panelTwo.nfSetupThreshold.getMaximum() shouldBe 300
}

@Test
fun `Should not add setup threshold to screen in party mode`() {
InjectedThings.partyMode = true

val panel = factoryStatsPanel()
panel.findChild<NumberField>().shouldBeNull()
}

@Test
fun `Should get correct highest score, lowest score and 3 dart average`() {
// Alive - 26, 100
Expand Down

0 comments on commit b3bf377

Please sign in to comment.