tests/extmod: Add test for ujson.load().

This commit is contained in:
Damien George 2016-10-13 11:44:40 +11:00
parent e93c1ca5da
commit 11ab807d76

View File

@ -0,0 +1,11 @@
try:
from uio import StringIO
import ujson as json
except:
from io import StringIO
import json
print(json.load(StringIO('null')))
print(json.load(StringIO('"abc\\u0064e"')))
print(json.load(StringIO('[false, true, 1, -2]')))
print(json.load(StringIO('{"a":true}')))