Skip to content

Commit 0588e45

Browse files
committed
add haskell test
1 parent 04f4cab commit 0588e45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/treewalker/haskell_spec.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ describe("In a haskell file: ", function()
2727
tw.move_out()
2828
h.assert_cursor_at(19, 1)
2929
end)
30+
31+
it("swaparound behavior works", function()
32+
vim.fn.cursor(40,15) -- (|node1, node2)
33+
tw.swap_left()
34+
assert.same(" printEvens [9, 3, 5, 7, 1]", lines.get_line(40))
35+
tw.swap_right()
36+
assert.same(" printEvens [1, 3, 5, 7, 9]", lines.get_line(40))
37+
end)
3038
end)
3139

3240

0 commit comments

Comments
 (0)