Add some test for timestamp (#403)

This commit is contained in:
Inada Naoki 2020-02-06 22:11:04 +09:00 committed by GitHub
parent ff1f5f89d9
commit 9d79351e99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 35 deletions

View file

@ -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)