From: Chris Duncan Date: Fri, 28 Aug 2026 01:24:44 +0000 (-0700) Subject: Fix test result. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e8899a867703c58ba89f79c147579c06aae25063;p=nano25519.git Fix test result. --- diff --git a/test/node.mjs b/test/node.mjs index 56ce459..38b1f8e 100644 --- a/test/node.mjs +++ b/test/node.mjs @@ -196,7 +196,7 @@ check(`verify strict check fails for problematic signature string ${PROBLEM_VECT passes += +test failures += +!test -result = verify_blocks(PROBLEM_VECTOR.publicKey, [{ signature: PROBLEM_VECTOR.signature, hash: PROBLEM_VECTOR.blockHash }]) +result = verify_blocks(PROBLEM_VECTOR.publicKey, [{ signature: PROBLEM_VECTOR.signature, hash: PROBLEM_VECTOR.blockHash }])[0] test = result === true check(`verify_blocks relaxed check passes problematic signature string ${PROBLEM_VECTOR.signature}`, test) passes += +test