Merge pull request #1779 from davotoula/quartz-fix-jvm-chess-tests

fix chess tests
This commit is contained in:
Vitor Pamplona
2026-03-06 20:21:12 -05:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
@@ -20,6 +20,7 @@
*/
package com.vitorpamplona.quartz.nip64Chess
import com.vitorpamplona.quartz.nip31Alts.alt
import com.vitorpamplona.quartz.nip64Chess.game.ChessGameEvent
import kotlin.test.Test
import kotlin.test.assertEquals
@@ -83,7 +84,7 @@ class ChessGameEventTest {
sig = "test_sig",
)
assertEquals(customAltText, testEvent.altText(), "Alt text should be extractable from tags")
assertEquals(customAltText, testEvent.alt(), "Alt text should be extractable from tags")
}
@Test
@@ -98,7 +99,7 @@ class ChessGameEventTest {
sig = "test_sig",
)
assertEquals(null, testEvent.altText(), "Should return null when no alt tag present")
assertEquals(null, testEvent.alt(), "Should return null when no alt tag present")
}
@Test
@@ -20,6 +20,9 @@
*/
package com.vitorpamplona.quartz.nip64Chess
import com.vitorpamplona.quartz.nip64Chess.jester.JesterEvent
import com.vitorpamplona.quartz.nip64Chess.jester.JesterGameEvents
import com.vitorpamplona.quartz.nip64Chess.jester.JesterProtocol
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse