[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 42630fe6cc 254/313: Fix test case to cover
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 42630fe6cc 254/313: Fix test case to cover substring completion. |
Date: |
Sat, 3 Dec 2022 10:59:35 -0500 (EST) |
branch: elpa/bash-completion
commit 42630fe6cc5b3af6c6029a4fc0ff17504223cd9f
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
Fix test case to cover substring completion.
This covers complex completions that require the substring completion
style to be enabled.
---
test/bash-completion-integration-test.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/test/bash-completion-integration-test.el
b/test/bash-completion-integration-test.el
index b501be6b15..e2fe939ef7 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -333,21 +333,19 @@ for testing completion."
"sometimes_not_nospace dummyo"
(bash-completion_test-complete "sometimes_not_nospace
dum")))))))
-(ert-deftest bash-completion-integration-bash-4-complex-completion ()
+(ert-deftest bash-completion-integration-bash-4-substring-completion ()
(bash-completion_test-with-shell-harness
(concat ; .bashrc
"function _myprog {\n"
" COMPREPLY=( \"ba${COMP_WORDS[$COMP_CWORD]}ta\" )\n"
- " COMPREPLY+=( \"ba${COMP_WORDS[$COMP_CWORD]}to\" )\n"
"}\n"
"complete -F _myprog myprog\n")
t ; bash-completion-use-separate-processes
- ;; The default completion engine doesn't support replacing the word
- ;; to complete with candidates and will ignore all candidates, but
- ;; other completions engines do support it, so it's worth returning
- ;; them - but we can't use bash-completion_test-complete.
- (should (equal '("batitita" "batitito")
- (bash-completion_test-candidates "myprog blah titi")))))
+ (let ((completion-in-region-function 'completion--in-region)
+ (completion-styles '(basic partial-completion substring emacs22)))
+ (should (equal
+ "myprog blah batitita "
+ (bash-completion_test-complete "myprog blah titi"))))))
(ert-deftest bash-completion-integration-vioption-single-process-test ()
(bash-completion_test--with-bash-option "set -o vi" nil))
- [nongnu] elpa/bash-completion a2da7b910b 235/313: Updated README to push for bash-completion-use-separate-processes., (continued)
- [nongnu] elpa/bash-completion a2da7b910b 235/313: Updated README to push for bash-completion-use-separate-processes., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fd3ba68800 236/313: Force bash-completion-use-separate-processes to t in tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7f4410ebcb 237/313: Extend integration tests to cover single-process use-case., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f8c2083a14 239/313: Rename bash-completion-get-process., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c25f2203f5 240/313: Fix typo and extend note about use-separate-processes-opt., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 685ed73df0 243/313: Allow completion to replace the word being completed., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7dc20e1b09 244/313: Use separate processes in integration tests when it doesn't matter., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a0a5816ce4 245/313: Attempt to make in-process execution more robust., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion cad904abfd 247/313: Redefine quote_readline from setup-bash-common., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5447034cdc 251/313: Respect completion-ignore-case setting from .inputrc., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 42630fe6cc 254/313: Fix test case to cover substring completion.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 8f33a2aac4 257/313: Better document calling bash-completion from completion-at-point., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 96d2cef799 259/313: Prepare for a 3.0 release., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4aafffe76a 260/313: Create CONTRIBUTING.md, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2b9eba14fa 261/313: Update README.md, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 79ce50bec9 262/313: Update README.md title, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5e623ac270 275/313: Revert "Add test cases for TRAMP shell.", ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 702859f319 278/313: Cleanup strings containing bash commands., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 19d4fec42f 280/313: Use && instead of ; after cd, so completion fails if cd fails., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c584d4936b 281/313: Explicitly ignore error from the history command., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion de033933bd 282/313: Chain function definitions with && during setup., ELPA Syncer, 2022/12/03