Skip to content

Commit

Permalink
Merge pull request #1669 from sakurawald/add-vi-tests
Browse files Browse the repository at this point in the history
add: tests for vi-swapcase-and-forward
  • Loading branch information
cxxxr authored Dec 3, 2024
2 parents e04b45b + b2aad79 commit acb44b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/vi-mode/tests/operator.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,12 @@
(with-vi-buffer (#?"Hello\nWor[l]d")
(cmd "<C-v>khg~")
(ok (buf= #?"He[L]Lo\nWoRLd")))))

(deftest vi-swapcase-and-forward
(with-fake-interface ()
(with-vi-buffer ("[H]ello World")
(cmd "~")
(ok (buf= "h[e]llo World")))
(with-vi-buffer ("[H]ello World")
(cmd "~~~~~~")
(ok (buf= "hELLO [W]orld")))))

0 comments on commit acb44b5

Please sign in to comment.