Skip to content

Commit

Permalink
Update json-patch-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed May 1, 2017
2 parents e1f6470 + ffb877c commit a01267c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/json-patch-tests/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
"doc": ["foo", "bar"],
"patch": [{"op": "test", "path": "/01", "value": "bar"}],
"error": "test op should reject the array value, it has leading zeros" },

{ "comment": "Removing nonexistent field",
"doc": {"foo" : "bar"},
"patch": [{"op": "remove", "path": "/baz"}],
Expand All @@ -418,6 +418,12 @@
{ "comment": "Removing nonexistent index",
"doc": ["foo", "bar"],
"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"}
}

]

0 comments on commit a01267c

Please sign in to comment.