mirror of
https://github.com/json-c/json-c.git
synced 2026-03-29 09:59:06 +08:00
Fix code and update tests
This commit is contained in:
@@ -14,7 +14,7 @@ new_obj.to_string("\ud840")="<22>"
|
||||
new_obj.to_string("\udd27")="<22>"
|
||||
new_obj.to_string([9,'\uDAD)=null
|
||||
new_obj.to_string("[9,'\uDAD")=null
|
||||
new_obj.to_string("\uD836\uDE87")="<EFBFBD>"
|
||||
new_obj.to_string("\uD836\uDE87")="𝪇"
|
||||
new_obj.to_string(null)=null
|
||||
new_obj.to_string(NaN)=NaN
|
||||
new_obj.to_string(-NaN)=null
|
||||
@@ -142,7 +142,7 @@ json_tokener_parse_ex(tok, { "foo , 6) ... OK: got correct error: continu
|
||||
json_tokener_parse_ex(tok, : "bar"} , 8) ... OK: got correct error: unexpected character
|
||||
json_tokener_parse_ex(tok, "\uD836 , 7) ... OK: got correct error: continue
|
||||
json_tokener_parse_ex(tok, \uDE87 , 6) ... OK: got correct error: continue
|
||||
json_tokener_parse_ex(tok, " , 1) ... OK: got object of type [string]: "<EFBFBD>"
|
||||
json_tokener_parse_ex(tok, " , 1) ... OK: got object of type [string]: "𝪇"
|
||||
json_tokener_parse_ex(tok, { "foo , 6) ... OK: got correct error: continue
|
||||
json_tokener_parse_ex(tok, ": {"bar , 8) ... OK: got correct error: continue
|
||||
json_tokener_parse_ex(tok, ":13}}XXXX , 10) ... OK: got object of type [object]: { "foo": { "bar": 13 } }
|
||||
|
||||
Reference in New Issue
Block a user