tests: Split byteorder-dependent tests to *_endian.py's.

This commit is contained in:
Paul Sokolovsky
2015-08-30 00:30:28 +03:00
parent 0a8b5d160b
commit 58d9b10d70
8 changed files with 31 additions and 6 deletions

View File

@@ -9,8 +9,7 @@ print(bytes(bytearray(4)))
# arrays
print(bytes(array('b', [1, 2])))
print(bytes(array('h', [1, 2])))
print(bytes(array('I', [1, 2])))
print(bytes(array('h', [0x101, 0x202])))
# long ints
print(ord(bytes([14953042807679334000 & 0xff])))