mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Update json-patch-tests
This commit is contained in:
commit
043507872e
@ -202,6 +202,11 @@
|
|||||||
"patch": [{"op": "replace", "path": "", "value": {"baz": "qux"}}],
|
"patch": [{"op": "replace", "path": "", "value": {"baz": "qux"}}],
|
||||||
"expected": {"baz": "qux"} },
|
"expected": {"baz": "qux"} },
|
||||||
|
|
||||||
|
{ "comment": "test replace with missing parent key should fail",
|
||||||
|
"doc": {"bar": "baz"},
|
||||||
|
"patch": [{"op": "replace", "path": "/foo/bar", "value": false}],
|
||||||
|
"error": "replace op should fail with missing parent key" },
|
||||||
|
|
||||||
{ "comment": "spurious patch properties",
|
{ "comment": "spurious patch properties",
|
||||||
"doc": {"foo": 1},
|
"doc": {"foo": 1},
|
||||||
"patch": [{"op": "test", "path": "/foo", "value": 1, "spurious": 1}],
|
"patch": [{"op": "test", "path": "/foo", "value": 1, "spurious": 1}],
|
||||||
|
Loading…
Reference in New Issue
Block a user