We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a4a10 commit 3714df7Copy full SHA for 3714df7
tests.json
@@ -111,6 +111,16 @@
111
"patch": [{"op":" add", "path": "/2", "value": "bar"}],
112
"expected": ["foo", "sil", "bar"] },
113
114
+ { "comment": "test against implementation-specific numeric parsing",
115
+ "doc": {"1e0": "foo"},
116
+ "patch": [{"op": "test", "path": "/1e0", "value": "foo"}],
117
+ "expected": {"1e0": "foo"} },
118
+
119
+ { "comment": "test with bad number should fail",
120
+ "doc": ["foo", "bar"],
121
+ "patch": [{"op": "test", "path": "/1e0", "value": "bar"}],
122
+ "error": "test op shouldn't get array element 1" },
123
124
{ "doc": ["foo", "sil"],
125
"patch": [{"op": "add", "path": "/bar", "value": 42}],
126
"error": "Object operation on array target" },
0 commit comments