Skip to content

Commit e250b89

Browse files
committed
more tests
1 parent d1b9ecb commit e250b89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_pack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
def check(data, use_list=False):
1313
re = unpackb(packb(data), use_list=use_list)
1414
assert re == data
15+
assert type(re) == type(data)
1516

1617
def testPack():
1718
test_data = [
18-
0, 1, 127, 128, 255, 256, 65535, 65536,
19-
-1, -32, -33, -128, -129, -32768, -32769,
19+
0, 1, 127, 128, 255, 256, 65535, 65536, 4294967295, 4294967296,
20+
-1, -32, -33, -128, -129, -32768, -32769, -4294967296, -4294967297,
2021
1.0,
2122
b"", b"a", b"a"*31, b"a"*32,
2223
None, True, False,

0 commit comments

Comments
 (0)