tests/struct1: Test "l" specifier to improve coverage.

This commit is contained in:
Paul Sokolovsky 2016-09-19 16:59:49 +03:00
parent e60835bac5
commit b85bcd671c
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ print(struct.unpack(">bI", b"\x80\0\0\x01\0"))
# 32-bit little-endian specific
#print(struct.unpack("bI", b"\x80\xaa\x55\xaa\0\0\x01\0"))
print(struct.pack("<l", 1))
print(struct.pack(">l", 1))
print(struct.pack("<i", 1))
print(struct.pack(">i", 1))
print(struct.pack("<h", 1))