libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 6244c8af28fd1abdceb64efced386cc48d8d83f6
parent 7c5040b810fcabc5229f1583922023b368fb6348
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu, 24 Oct 2019 18:04:10 +0200

Make clearer how values should be converted before comparison.

Diffstat:
Msandbox/src/test/kotlin/KeyCmpTest.kt | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sandbox/src/test/kotlin/KeyCmpTest.kt b/sandbox/src/test/kotlin/KeyCmpTest.kt @@ -18,7 +18,9 @@ class KeyCmpTest { val HEX_STRING = "AA" // as coming from the keyletter val ba = byteArrayOf(0xAA.toByte()) // as coming from the database + val x = HEX_STRING.toBigInteger(16) + val y = BigInteger(1, ba) - assertTrue(BigInteger(1, ba).equals(HEX_STRING.toBigInteger(16))) + assertTrue(x == y) } } \ No newline at end of file