From 8027c3852d242645d8a8b2c88543621417bc2c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 26 May 2021 15:12:55 +0200 Subject: [PATCH] add unit test for short-lists --- tests/test_minijson.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_minijson.py b/tests/test_minijson.py index 9ed15b8..e52443d 100644 --- a/tests/test_minijson.py +++ b/tests/test_minijson.py @@ -26,7 +26,6 @@ class TestMiniJSON(unittest.TestCase): def test_long_lists(self): a = [None]*17 b = dumps(a) - print('Encoded %s' % (b, )) c = loads(b) self.assertEqual(a, c) @@ -52,7 +51,7 @@ class TestMiniJSON(unittest.TestCase): a.append(i) self.assertEqual(loads(dumps(a)), a) a = [] - for i in range(65530): + for i in range(0xFFFFFF): a.append(i*2) self.assertEqual(loads(dumps(a)), a) -- GitLab