summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lisp/shell-tests.el10
1 files changed, 9 insertions, 1 deletions
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