From ffb877c94ad176c88355345c434c57de1a604455 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Tue, 2 May 2017 01:56:12 +0200 Subject: [PATCH] Squashed 'tests/json-patch-tests/' changes from 5405313..0dd0fbc 0dd0fbc tests.json: Test case sensitivity 01348ad tests.json: Remove trailing whitespace git-subtree-dir: tests/json-patch-tests git-subtree-split: 0dd0fbc5ec7eb9dab362fab47e08419079d5675e --- tests.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests.json b/tests.json index 48bbd99..28fe4bc 100644 --- a/tests.json +++ b/tests.json @@ -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"}], @@ -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"} + } ]