emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil c503bcc678 4/5: Add test


From: ELPA Syncer
Subject: [nongnu] elpa/evil c503bcc678 4/5: Add test
Date: Mon, 3 Oct 2022 19:58:22 -0400 (EDT)

branch: elpa/evil
commit c503bcc678d15c037bac23a4f181e5270b7a9139
Author: Axel Forsman <axelsfor@gmail.com>
Commit: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>

    Add test
---
 evil-tests.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/evil-tests.el b/evil-tests.el
index 8373464516..1b61aff868 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -3340,6 +3340,19 @@ Below some empty line"
       ("jjjkk")
       "abc\nab[c]def\n\nabcd\n")))
 
+(ert-deftest evil-test-logical-visual-next-line ()
+  "Test alternating between logical and visual next/previous line motions."
+  :tags '(evil motion)
+  (skip-unless (and (not noninteractive) (> (window-width) 1)))
+  (evil-test-buffer
+   "[]\nyy\n"
+   (insert (make-string (window-width) ?x)) ; Make first line soft-wrap
+   (goto-char (point-min))
+   ("gjj")
+   (should (= (current-column) 1))
+   ("Gkgk")
+   (should (evil-eolp))))
+
 (ert-deftest evil-test-other-commands-preserve-column ()
   "Test other comamnds preserve the column, when appropriate."
   :tags '(evil motion)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]