We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1138448 commit 0715ca2Copy full SHA for 0715ca2
mypyc/test-data/run-integers.test
@@ -581,3 +581,5 @@ def test_to_bytes() -> None:
581
assert to_bytes(255, 2, "little") == b'\xff\x00'
582
assert to_bytes(-1, 2, "big", True) == b'\xff\xff'
583
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