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).
This commit is contained in:
Mattias Engdegård 2020-01-20 15:52:27 +01:00
parent 891f7de8ed
commit fd19282134

View file

@ -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