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:
parent
891f7de8ed
commit
fd19282134
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue