nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: don't overflow `short int` used as vertices index
[nit.git]
/
tests
/
test_json_static.nit
diff --git
a/tests/test_json_static.nit
b/tests/test_json_static.nit
index
efc65d2
..
db6b1cf
100644
(file)
--- a/
tests/test_json_static.nit
+++ b/
tests/test_json_static.nit
@@
-27,7
+27,7
@@
var c = "\{\"foo\":\"bar\\\"\\\\\\/\\b\\f\\n\\r\\t\\u0020\\u0000\"\}"
var d = "\{ \"face with tears of joy\" : \"\\uD83D\\uDE02\" \}"
for s in [a, b, c, d] do
- var obj = s.json_to_nit_object
+ var obj = s.parse_json
print "# Json: {s}"
print "# Nit: {obj or else "<null>"}"
end