Skip to content

Commit 8e5e7ec

Browse files
committed
remove-and-move-right does not affect position
1 parent 98d0758 commit 8e5e7ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/rewrite_clj/zip/utils_test.clj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@
3636
3 [1 3]
3737
5 [1 6]
3838
2 [1 2])
39+
40+
(tabular
41+
(fact "`remove-and-move-right` does not affect position"
42+
(let [root (base/of-string "[a bb ccc]")
43+
zloc (nth (iterate z/next root) ?n)]
44+
(z/position (remove-and-move-right zloc)) => ?pos))
45+
?n ?pos
46+
3 [1 4]
47+
1 [1 2]
48+
2 [1 3])

0 commit comments

Comments
 (0)