kopia lustrzana https://github.com/micropython/micropython
tests/extmod: Add test for ujson.load().
rodzic
e93c1ca5da
commit
11ab807d76
|
@ -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}')))
|
Ładowanie…
Reference in New Issue