Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Oct 16, 2023
1 parent fa1910d commit 2437f7a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/nvim-paredit/motion_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ describe("motions", function()
expect({
cursor = { 1, 15 },
})
end)

it("should jump to current element's tail if there is no next element", function()
prepare_buffer({
content = "(aa (bb) @(cc) #{1})",
cursor = { 1, 15 },
})

paredit.move_to_next_element_head()
expect({
cursor = { 1, 15 },
cursor = { 1, 18 },
})
end)

Expand Down

0 comments on commit 2437f7a

Please sign in to comment.