gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] branch master updated: Make clearer how values s


From: gnunet
Subject: [GNUnet-SVN] [libeufin] branch master updated: Make clearer how values should be converted before comparison.
Date: Thu, 24 Oct 2019 18:04:39 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 6244c8a  Make clearer how values should be converted before comparison.
6244c8a is described below

commit 6244c8af28fd1abdceb64efced386cc48d8d83f6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 24 18:04:10 2019 +0200

    Make clearer how values should be converted before comparison.
---
 sandbox/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
index 10a799a..60d8881 100644
--- 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]