From 539681fffd96082ca3b5d18643d4f08f65c47170 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Jul 2014 06:14:29 +0100 Subject: tests: Rename test scripts, changing - to _ for consistency. From now on, all new tests must use underscore. Addresses issue #727. --- tests/basics/int_bytes.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/basics/int_bytes.py (limited to 'tests/basics/int_bytes.py') diff --git a/tests/basics/int_bytes.py b/tests/basics/int_bytes.py new file mode 100644 index 000000000..45965ed46 --- /dev/null +++ b/tests/basics/int_bytes.py @@ -0,0 +1,6 @@ +print((10).to_bytes(1, "little")) +print((111111).to_bytes(4, "little")) +print((100).to_bytes(10, "little")) +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")) -- cgit v1.2.3