Skip to content

Commit 0715ca2

Browse files
committed
test long
1 parent 1138448 commit 0715ca2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypyc/test-data/run-integers.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,3 +581,5 @@ def test_to_bytes() -> None:
581581
assert to_bytes(255, 2, "little") == b'\xff\x00'
582582
assert to_bytes(-1, 2, "big", True) == b'\xff\xff'
583583
assert to_bytes(0, 1, "big") == b'\x00'
584+
# test with a value that does not fit in 64 bits
585+
assert to_bytes(10**30, 16, "big") == b'\x00\x00\x00\x0c\x9f,\x9c\xd0Ft\xed\xea@\x00\x00\x00'

0 commit comments

Comments
 (0)