Skip to content

Commit

Permalink
Add new tests to test.json errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkow committed Mar 4, 2024
1 parent 0b1cc20 commit af45195
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/resources/jsonpatch/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit af45195

Please sign in to comment.