Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Aug 25, 2024
1 parent 7f7041d commit 9eb0429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/com/esaulpaugh/headlong/util/UnsignedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ public void testUnsigned() {
BigInteger a = new BigInteger(bytes);
BigInteger b = new BigInteger(unsignedBytes);
final int bitlen = b.bitLength();
if (bitlen == 0) {
continue;
}
try {
assertEquals(uints[bitlen].toUnsigned(a), b);
} catch (IllegalArgumentException iae) {
Expand Down

0 comments on commit 9eb0429

Please sign in to comment.