From 5658b14ad45d34b866ca77bafd52330c622ef0f1 Mon Sep 17 00:00:00 2001 From: davotoula Date: Fri, 6 Mar 2026 23:26:40 +0100 Subject: [PATCH] fix chess tests --- .../vitorpamplona/quartz/nip64Chess/ChessGameEventTest.kt | 5 +++-- .../quartz/nip64Chess/ChessStateReconstructorTest.kt | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessGameEventTest.kt b/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessGameEventTest.kt index 678a1ed34..a52602ca6 100644 --- a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessGameEventTest.kt +++ b/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessGameEventTest.kt @@ -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 diff --git a/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessStateReconstructorTest.kt b/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessStateReconstructorTest.kt index 3b6e8fe98..2f5908010 100644 --- a/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessStateReconstructorTest.kt +++ b/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip64Chess/ChessStateReconstructorTest.kt @@ -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