diff --git a/simbot-component-qq-guild-stdlib/src/commonTest/kotlin/Ed25519Tests.kt b/simbot-component-qq-guild-stdlib/src/commonTest/kotlin/Ed25519Tests.kt index 0c91b283..7eeef385 100644 --- a/simbot-component-qq-guild-stdlib/src/commonTest/kotlin/Ed25519Tests.kt +++ b/simbot-component-qq-guild-stdlib/src/commonTest/kotlin/Ed25519Tests.kt @@ -58,7 +58,7 @@ class Ed25519TestsCommon { fun ed25519VerifyTest() { // val appId = "11111111" val secret = "DG5g3B4j9X2KOErG" - val seed = secret.paddingEd25519Seed() + val seed = secret.paddingEd25519Seed() val plainToken = "Arq0D5A61EgUu4OxUvOp" val ts = "1725442341" // val body = """{"d":{"plain_token":"Arq0D5A61EgUu4OxUvOp","event_ts":"1725442341"},"op":13}""" @@ -85,9 +85,17 @@ class Ed25519TestsCommon { ) assertIs(result) - assertEquals("87befc99c42c651b3aac0278e71ada338433ae26fcb24307bdc5ad38c1adc2d01bcfc" + - "adc0842edac85e85205028a1132afe09280305f13aa6909ffc2d652c706", result.verified.signature) - assertEquals("Arq0D5A61EgUu4OxUvOp", result.verified.plainToken) + assertEquals( + "87befc99c42c651b3aac0278e71ada338433ae26fcb24307bdc5ad38c1adc2d01bcfc" + + "adc0842edac85e85205028a1132afe09280305f13aa6909ffc2d652c706", + result.verified.signature, + "Verified signature not equal" + ) + assertEquals( + "Arq0D5A61EgUu4OxUvOp", + result.verified.plainToken, + "Verified plainToken not equal" + ) } companion object {