From b2aad79aae912ba9df32f7fba20e36a8cec8077c Mon Sep 17 00:00:00 2001 From: sakurawald Date: Tue, 3 Dec 2024 11:07:45 +0800 Subject: [PATCH] add: tests for vi-swapcase-and-forward --- extensions/vi-mode/tests/operator.lisp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extensions/vi-mode/tests/operator.lisp b/extensions/vi-mode/tests/operator.lisp index 30951ba49..457bb83fb 100644 --- a/extensions/vi-mode/tests/operator.lisp +++ b/extensions/vi-mode/tests/operator.lisp @@ -293,3 +293,12 @@ (with-vi-buffer (#?"Hello\nWor[l]d") (cmd "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")))))