Skip to content

Commit ac46ba4

Browse files
committed
z/remove tracks position correctly
1 parent 2396c25 commit ac46ba4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/rewrite_clj/zip/zip_test.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@
6565
z/right z/right
6666
z/leftmost
6767
z/position) => [1 2])
68+
69+
(fact "z/remove tracks position correctly"
70+
(let [root (base/of-string "[hello world]")]
71+
(-> root z/down z/remove z/position) => [1 1]
72+
(-> root z/down z/right z/remove z/position) => [1 2]))

0 commit comments

Comments
 (0)