aboutsummaryrefslogtreecommitdiff
path: root/src/test/model/asn1/IntTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/model/asn1/IntTest.java')
-rw-r--r--src/test/model/asn1/IntTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/model/asn1/IntTest.java b/src/test/model/asn1/IntTest.java
index 6e92eb0..23a5e23 100644
--- a/src/test/model/asn1/IntTest.java
+++ b/src/test/model/asn1/IntTest.java
@@ -4,6 +4,8 @@ import model.asn1.exceptions.ParseException;
import model.asn1.parsing.BytesReader;
import org.junit.jupiter.api.Test;
+import java.math.BigInteger;
+
import static org.junit.jupiter.api.Assertions.*;
public class IntTest {
@@ -11,6 +13,7 @@ public class IntTest {
void testConstructor() {
assertEquals(0x2, new Int(Int.TAG, null, 255).getTag().getNumber());
assertEquals(255, new Int(Int.TAG, null, 255).getLong());
+ assertEquals(255, new Int(Int.TAG, null, BigInteger.valueOf(255)).getLong());
}
@Test