Skip to content

Commit 3151673

Browse files
author
Mike McCabe
committed
Add test for repeated array removes. Resolves #14.
1 parent 39068c6 commit 3151673

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@
276276
"patch": [{"op": "remove", "path": "/0"}],
277277
"expected": [2, 3, 4] },
278278

279+
{ "comment": "test repeated removes",
280+
"doc": [1, 2, 3, 4],
281+
"patch": [{ "op": "remove", "path": "/1" },
282+
{ "op": "remove", "path": "/2" }],
283+
"expected": [1, 3] },
284+
279285
{ "comment": "test remove with bad index should fail",
280286
"doc": [1, 2, 3, 4],
281287
"patch": [{"op": "remove", "path": "/1e0"}],

0 commit comments

Comments
 (0)