fix chess tests

This commit is contained in:
davotoula
2026-03-06 23:26:40 +01:00
parent a89bfd0b05
commit 5658b14ad4
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