You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/extmod: Add test for ujson.load().
This commit is contained in:
@@ -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}')))
|
||||
Reference in New Issue
Block a user