summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-23 18:36:28 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-23 18:41:29 +0200
commit444331c07f47488325986e375ea6b1838f06685d (patch)
treea7710c7af0f48b829e7afb43cc5acb6bfad5e679 /tests
parent1f04336b23088999ca572fac0b90bc25b954170c (diff)
downloadmicropython-444331c07f47488325986e375ea6b1838f06685d.tar.gz
micropython-444331c07f47488325986e375ea6b1838f06685d.zip
modujson: .loads(): Handle more whitespace characters.
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/ujson_loads.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/extmod/ujson_loads.py b/tests/extmod/ujson_loads.py
index 187917f821..05bd62a9b2 100644
--- a/tests/extmod/ujson_loads.py
+++ b/tests/extmod/ujson_loads.py
@@ -30,3 +30,6 @@ my_print(json.loads('{}'))
my_print(json.loads('{"a":true}'))
my_print(json.loads('{"a":null, "b":false, "c":true}'))
my_print(json.loads('{"a":[], "b":[1], "c":{"3":4}}'))
+
+# whitespace handling
+my_print(json.loads('{\n\t"a":[]\r\n, "b":[1], "c":{"3":4} \n\r\t\r\r\r\n}'))