From 2437f7a2ca2c22133deebfb8e86d18e317d7d928 Mon Sep 17 00:00:00 2001 From: Artem Medeu Date: Mon, 16 Oct 2023 18:44:56 +0600 Subject: [PATCH] add tests --- tests/nvim-paredit/motion_spec.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/nvim-paredit/motion_spec.lua b/tests/nvim-paredit/motion_spec.lua index 7541684..f1c61dc 100644 --- a/tests/nvim-paredit/motion_spec.lua +++ b/tests/nvim-paredit/motion_spec.lua @@ -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)