Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Mar 5, 2024
1 parent 4a5ea78 commit 198a5f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/dartzee/reporting/ReportingUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private fun makeParticipantTempTable(): String? {
return tempTable
}

fun buildBasicSqlStatement(ptTempTable: String) =
private fun buildBasicSqlStatement(ptTempTable: String) =
"""
SELECT
g.RowId,
Expand Down
7 changes: 4 additions & 3 deletions src/test/kotlin/dartzee/reporting/TestParticipantWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import org.junit.jupiter.api.Test
class TestParticipantWrapper : AbstractTest() {
@Test
fun `Should describe the player and their position correctly`() {
ParticipantWrapper("Alice", 3).toString() shouldBe "Alice (3)"
ParticipantWrapper("Bob", 6).toString() shouldBe "Bob (6)"
ParticipantWrapper("Clive", -1).toString() shouldBe "Clive (-)"
ParticipantWrapper("Alice", 3, false, "").toString() shouldBe "Alice (3)"
ParticipantWrapper("Bob", 6, false, "").toString() shouldBe "Bob (6)"
ParticipantWrapper("Clive", -1, false, "").toString() shouldBe "Clive (-)"
ParticipantWrapper("Daisy", 5, true, "").toString() shouldBe "Daisy (R)"
}
}

0 comments on commit 198a5f8

Please sign in to comment.