Skip to content

Commit eadde37

Browse files
add test for unbounded integer
1 parent 106239c commit eadde37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_blob.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ def test_pack():
3636
y = unpack(pack(x))
3737
assert_true(x == y and isinstance(y, int) and not isinstance(y, np.ndarray), "Native int did not match")
3838

39+
x = -25523987234234287910987234987098245697129798713407812347
40+
y = unpack(pack(x))
41+
assert_true(x == y and isinstance(y, int) and not isinstance(y, np.ndarray), "Native int did not match")
42+
3943
x = 7.
4044
y = unpack(pack(x))
4145
assert_true(x == y and isinstance(y, float) and not isinstance(y, np.ndarray), "Native float did not match")

0 commit comments

Comments
 (0)