Skip to content

Commit fd19282

Browse files
committed
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).
1 parent 891f7de commit fd19282

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/lisp/shell-tests.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
(with-temp-buffer
3535
(shell-mode)
3636
(insert "cd ba;")
37+
(forward-char -1)
3738
(should (equal (shell--parse-pcomplete-arguments)
38-
'(("cd" "ba" "") 1 4)))))
39+
'(("cd" "ba") 1 4)))))
40+
41+
(ert-deftest shell-tests-completion-after-semi ()
42+
(with-temp-buffer
43+
(shell-mode)
44+
(insert "cd ba;")
45+
(should (equal (shell--parse-pcomplete-arguments)
46+
'(("cd" "ba" "") 1 4 7)))))
3947

4048
;;; shell-tests.el ends here

0 commit comments

Comments
 (0)