From fd192821342dee6692068adcb18342674f701bc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Mon, 20 Jan 2020 15:52:27 +0100 Subject: [PATCH] Fix shell-tests failures * test/lisp/shell-tests.el (shell-tests-completion-before-semi): Go back to actually testing completion before semicolon. (shell-tests-completion-after-semi): Test completion after semicolon, correctly (bug#39075). --- test/lisp/shell-tests.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/lisp/shell-tests.el b/test/lisp/shell-tests.el index 7113cb941c1..606de15c9a6 100644 --- a/test/lisp/shell-tests.el +++ b/test/lisp/shell-tests.el @@ -34,7 +34,15 @@ (with-temp-buffer (shell-mode) (insert "cd ba;") + (forward-char -1) (should (equal (shell--parse-pcomplete-arguments) - '(("cd" "ba" "") 1 4))))) + '(("cd" "ba") 1 4))))) + +(ert-deftest shell-tests-completion-after-semi () + (with-temp-buffer + (shell-mode) + (insert "cd ba;") + (should (equal (shell--parse-pcomplete-arguments) + '(("cd" "ba" "") 1 4 7))))) ;;; shell-tests.el ends here -- 2.39.2