Skip to content

Commit 11ab807

Browse files
committed
tests/extmod: Add test for ujson.load().
1 parent e93c1ca commit 11ab807

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/extmod/ujson_load.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try:
2+
from uio import StringIO
3+
import ujson as json
4+
except:
5+
from io import StringIO
6+
import json
7+
8+
print(json.load(StringIO('null')))
9+
print(json.load(StringIO('"abc\\u0064e"')))
10+
print(json.load(StringIO('[false, true, 1, -2]')))
11+
print(json.load(StringIO('{"a":true}')))

0 commit comments

Comments
 (0)