Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
11ab807d
Commit
11ab807d
authored
Oct 13, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/extmod: Add test for ujson.load().
parent
e93c1ca5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tests/extmod/ujson_load.py
tests/extmod/ujson_load.py
+11
-0
No files found.
tests/extmod/ujson_load.py
0 → 100644
View file @
11ab807d
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}'
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment