From 96b0919c1a4687877d6a09cf46583e7fc5b77aa8 Mon Sep 17 00:00:00 2001 From: "adam.lenkowski" Date: Mon, 4 Mar 2024 12:11:34 +0100 Subject: [PATCH] Add new tests to test.json errors. --- src/test/resources/jsonpatch/test.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test/resources/jsonpatch/test.json b/src/test/resources/jsonpatch/test.json index 851a46ec..ac4e7879 100644 --- a/src/test/resources/jsonpatch/test.json +++ b/src/test/resources/jsonpatch/test.json @@ -14,6 +14,21 @@ "op": { "op": "test", "path": "/x", "value": -30.000 }, "node": { "x": -29.020 }, "message": "value differs from expectations: expected '-3E+1' but found '-29.02'" + }, + { + "op": { "op": "test", "path": "/y", "value": "test" }, + "node": {"y": "result"}, + "message": "value differs from expectations: expected '\"test\"' but found '\"result\"'" + }, + { + "op": { "op": "test", "path": "/age", "value": 25 }, + "node": {"age": 30 }, + "message": "value differs from expectations: expected '25' but found '30'" + }, + { + "op": { "op": "test", "path": "/isActive", "value": false }, + "node": {"isActive": true }, + "message": "value differs from expectations: expected 'false' but found 'true'" } ], "ops": [