diff options
| author | Mattias EngdegÄrd | 2020-01-20 15:52:27 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-01-20 15:52:27 +0100 |
| commit | fd192821342dee6692068adcb18342674f701bc8 (patch) | |
| tree | d49bd8fd24cca2c1df7adad101d87c9a1a57e6ed | |
| parent | 891f7de8ed1615b830e27922b3d85be53a652a60 (diff) | |
| download | emacs-fd192821342dee6692068adcb18342674f701bc8.tar.gz emacs-fd192821342dee6692068adcb18342674f701bc8.zip | |
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).
| -rw-r--r-- | test/lisp/shell-tests.el | 10 |
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 @@ | |||
| 34 | (with-temp-buffer | 34 | (with-temp-buffer |
| 35 | (shell-mode) | 35 | (shell-mode) |
| 36 | (insert "cd ba;") | 36 | (insert "cd ba;") |
| 37 | (forward-char -1) | ||
| 37 | (should (equal (shell--parse-pcomplete-arguments) | 38 | (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))))) | ||
| 39 | 47 | ||
| 40 | ;;; shell-tests.el ends here | 48 | ;;; shell-tests.el ends here |