git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
json: Export function to parse an individual JSON string.
[sliver-openvswitch.git]
/
tests
/
json.at
diff --git
a/tests/json.at
b/tests/json.at
index
371bf2d
..
2f3732c
100644
(file)
--- a/
tests/json.at
+++ b/
tests/json.at
@@
-60,8
+60,11
@@
JSON_CHECK_NEGATIVE([formfeed in quoted string],
JSON_CHECK_NEGATIVE([bad escape in quoted string],
[[["\x12"]]],
[error: bad escape \x])
JSON_CHECK_NEGATIVE([bad escape in quoted string],
[[["\x12"]]],
[error: bad escape \x])
-JSON_CHECK_NEGATIVE([\u must be followed by 4 hex digits],
+JSON_CHECK_NEGATIVE([\u must be followed by 4 hex digits
(1)
],
[[["\u1x"]]],
[[["\u1x"]]],
+ [error: quoted string ends within \u escape])
+JSON_CHECK_NEGATIVE([\u must be followed by 4 hex digits (2)],
+ [[["\u1xyz"]]],
[error: malformed \u escape])
JSON_CHECK_NEGATIVE([isolated leading surrogate not allowed],
[[["\ud834xxx"]]],
[error: malformed \u escape])
JSON_CHECK_NEGATIVE([isolated leading surrogate not allowed],
[[["\ud834xxx"]]],