mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Add some test for timestamp (#403)
This commit is contained in:
parent
ff1f5f89d9
commit
9d79351e99
6 changed files with 40 additions and 35 deletions
|
@ -49,7 +49,7 @@ def testPack():
|
|||
False,
|
||||
(),
|
||||
((),),
|
||||
((), None,),
|
||||
((), None),
|
||||
{None: 0},
|
||||
(1 << 23),
|
||||
]
|
||||
|
@ -69,21 +69,13 @@ def testPackUnicode():
|
|||
|
||||
|
||||
def testPackBytes():
|
||||
test_data = [
|
||||
b"",
|
||||
b"abcd",
|
||||
(b"defgh",),
|
||||
]
|
||||
test_data = [b"", b"abcd", (b"defgh",)]
|
||||
for td in test_data:
|
||||
check(td)
|
||||
|
||||
|
||||
def testPackByteArrays():
|
||||
test_data = [
|
||||
bytearray(b""),
|
||||
bytearray(b"abcd"),
|
||||
(bytearray(b"defgh"),),
|
||||
]
|
||||
test_data = [bytearray(b""), bytearray(b"abcd"), (bytearray(b"defgh"),)]
|
||||
for td in test_data:
|
||||
check(td)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue