emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bash-completion 2c4cb6edd2 186/313: Replace bash-completio


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 2c4cb6edd2 186/313: Replace bash-completion-integration-test with a higher-level test for
Date: Sat, 3 Dec 2022 10:59:29 -0500 (EST)

branch: elpa/bash-completion
commit 2c4cb6edd2ad59ebc4aea57204adad11401baeb0
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Replace bash-completion-integration-test with a higher-level test for
    builtin completion.
---
 test/bash-completion-integration-test.el | 23 +++--------------------
 1 file changed, 3 insertions(+), 20 deletions(-)

diff --git a/test/bash-completion-integration-test.el 
b/test/bash-completion-integration-test.el
index 452eb387cc..ee59c6fa02 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -111,26 +111,6 @@ for testing completion."
         (delete-directory test-env-dir 'recursive)
       (dired-delete-file test-env-dir 'always))))
 
-(ert-deftest bash-completion-integration-test ()
-  (bash-completion_test-harness
-   (should-not (bash-completion-is-running))
-   (should (buffer-live-p (bash-completion-buffer)))
-   (should (bash-completion-is-running))
-   (should-not (null (member
-                      "help "
-                      (bash-completion-comm
-                       (bash-completion--make
-                        :line "hel"
-                        :point 4
-                        :words '("hel")
-                        :cword 0
-                        :stub "hel"
-                        :unparsed-stub "hel"
-                        :wordbreaks "@><=;|&(:")
-                       (bash-completion-require-process)))))
-   (bash-completion-reset)
-   (should-not (bash-completion-is-running))))
-
 (ert-deftest bash-completion-integration-setenv-test ()
   (bash-completion_test-harness
    (bash-completion-send "echo $EMACS_BASH_COMPLETE")
@@ -142,6 +122,9 @@ for testing completion."
    (bash-completion-integration-test-complete)))
 
 (defun bash-completion-integration-test-complete ()
+   ;; complete bash builtin
+   (should (equal "readonly "
+                  (bash-completion_test-complete "reado")))
    ;; complete command
    (should (equal "somefunction "
                   (bash-completion_test-complete "somef")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]