* 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).
(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