diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2019-12-05 21:34:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-05 21:34:10 +0900 |
| commit | 7e9905bdfaecde83ddb1a4575e734a10b055fde9 (patch) | |
| tree | 2b9900fcdf0b5b1986b024edb2802971399b8fb8 /test/test_format.py | |
| parent | de320488ae494b85a03b60dd33f91b650033d775 (diff) | |
| download | msgpack-python-7e9905bdfaecde83ddb1a4575e734a10b055fde9.tar.gz | |
Use new msgpack spec by default. (#386)
Diffstat (limited to 'test/test_format.py')
| -rw-r--r-- | test/test_format.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_format.py b/test/test_format.py index c2cdfbd..8c2f03f 100644 --- a/test/test_format.py +++ b/test/test_format.py @@ -4,8 +4,8 @@ from msgpack import unpackb -def check(src, should, use_list=0): - assert unpackb(src, use_list=use_list) == should +def check(src, should, use_list=0, raw=True): + assert unpackb(src, use_list=use_list, raw=raw) == should def testSimpleValue(): @@ -59,6 +59,12 @@ def testRaw(): b"\x00\x00\xdb\x00\x00\x00\x01a\xdb\x00\x00\x00\x02ab", (b"", b"a", b"ab", b"", b"a", b"ab"), ) + check( + b"\x96\xda\x00\x00\xda\x00\x01a\xda\x00\x02ab\xdb\x00\x00" + b"\x00\x00\xdb\x00\x00\x00\x01a\xdb\x00\x00\x00\x02ab", + ("", "a", "ab", "", "a", "ab"), + raw=False, + ) def testArray(): |
