diff --git a/src/main/kotlin/dartzee/reporting/ReportingUtil.kt b/src/main/kotlin/dartzee/reporting/ReportingUtil.kt index 23b944d2..ceba9c8b 100644 --- a/src/main/kotlin/dartzee/reporting/ReportingUtil.kt +++ b/src/main/kotlin/dartzee/reporting/ReportingUtil.kt @@ -61,7 +61,7 @@ private fun makeParticipantTempTable(): String? { return tempTable } -fun buildBasicSqlStatement(ptTempTable: String) = +private fun buildBasicSqlStatement(ptTempTable: String) = """ SELECT g.RowId, diff --git a/src/test/kotlin/dartzee/reporting/TestParticipantWrapper.kt b/src/test/kotlin/dartzee/reporting/TestParticipantWrapper.kt index da7c1dea..6f9044b1 100644 --- a/src/test/kotlin/dartzee/reporting/TestParticipantWrapper.kt +++ b/src/test/kotlin/dartzee/reporting/TestParticipantWrapper.kt @@ -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)" } }