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
a01267c0a4
@ -418,6 +418,12 @@
|
|||||||
{ "comment": "Removing nonexistent index",
|
{ "comment": "Removing nonexistent index",
|
||||||
"doc": ["foo", "bar"],
|
"doc": ["foo", "bar"],
|
||||||
"patch": [{"op": "remove", "path": "/2"}],
|
"patch": [{"op": "remove", "path": "/2"}],
|
||||||
"error": "removing a nonexistent index should fail" }
|
"error": "removing a nonexistent index should fail" },
|
||||||
|
|
||||||
|
{ "comment": "Patch with different capitalisation than doc",
|
||||||
|
"doc": {"foo":"bar"},
|
||||||
|
"patch": [{"op": "add", "path": "/FOO", "value": "BAR"}],
|
||||||
|
"expected": {"foo": "bar", "FOO": "BAR"}
|
||||||
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user