diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-14 15:12:20 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-14 15:12:20 -0500 |
| commit | c592bd612ad8231f61681aa40cd51b6bbfcb307f (patch) | |
| tree | dc91de7f96fa433ca1ab92efb0293b2b31dd8b9f /tests/basics/int_longint_bytes.py | |
| parent | cabc30e9a50e0bf87ab2130b6691d234941865ff (diff) | |
Implement to_bytes(..., signed=True)
Diffstat (limited to 'tests/basics/int_longint_bytes.py')
| -rw-r--r-- | tests/basics/int_longint_bytes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basics/int_longint_bytes.py b/tests/basics/int_longint_bytes.py index 42e445f53..90cbff2f8 100644 --- a/tests/basics/int_longint_bytes.py +++ b/tests/basics/int_longint_bytes.py @@ -3,6 +3,7 @@ import skip_if skip_if.no_bigint() print((2**64).to_bytes(9, "little")) +print((-2**64).to_bytes(9, "little", signed=True)) print(int.from_bytes(b"\x00\x01\0\0\0\0\0\0", "little")) print(int.from_bytes(b"\x01\0\0\0\0\0\0\0", "little")) print(int.from_bytes(b"\x00\x01\0\0\0\0\0\0", "little")) |
