[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 102316ebf9 117/313: Test bash-completion-d
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 102316ebf9 117/313: Test bash-completion-dynamic-complete-standard |
Date: |
Sat, 3 Dec 2022 10:59:22 -0500 (EST) |
branch: elpa/bash-completion
commit 102316ebf9f3c39dfe4bc6d5751084f6a54d2741
Author: Stephane Zermatten <stephane@boomer.local>
Commit: Stephane Zermatten <stephane@boomer.local>
Test bash-completion-dynamic-complete-standard
instead of bash-completion-dynamic-complete-legacy.
---
bash-completion-test.el | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/bash-completion-test.el b/bash-completion-test.el
index fcfe392127..f4f68ad1df 100644
--- a/bash-completion-test.el
+++ b/bash-completion-test.el
@@ -619,9 +619,12 @@ garbage
;; do a completion and return the result
(with-current-buffer shell-buffer
(insert ,complete-me)
- (let ((start (point)))
- (bash-completion-dynamic-complete-legacy)
- (buffer-substring-no-properties start (point-max)))))
+ (let ((result (bash-completion-dynamic-complete-standard)))
+ ;; (start end completions)
+ ;; start and end depend on the prompt length, so just return:
+ ;; ((- end start) completion)
+ (list (- (nth 1 result) (nth 0 result))
+ (nth 2 result)))))
;; finally
(when (and shell-buffer (buffer-live-p shell-buffer))
(with-current-buffer shell-buffer
@@ -656,14 +659,13 @@ garbage
(buffer-string))))))
(ert-deftest bash-completion-one-completion-test ()
- ;; TODO: Fix this test. It is flakey because of timing issues.
- (should (bash-completion-ends-with
- (bash-completion_test-with-shell "__bash_complete_")
- "__bash_complete_wrapper ")))
+ (should (equal '(16 ("__bash_complete_wrapper "
+ ;; TODO: again, why is this duplicated?
+ "__bash_complete_wrapper "))
+ (bash-completion_test-with-shell "__bash_complete_"))))
(ert-deftest bash-completion-wordbreak-completion-test ()
- (should (bash-completion-ends-with
- (bash-completion_test-with-shell "export PATH=/sbin:/bi")
- "export PATH=/sbin:/bin/")))
+ (should (equal '(3 ("/bin/"))
+ (bash-completion_test-with-shell "export PATH=/sbin:/bi"))))
;;; bash-completion_test.el ends here
- [nongnu] elpa/bash-completion 6f7c2b8b4f 080/313: removed initial version, (continued)
- [nongnu] elpa/bash-completion 6f7c2b8b4f 080/313: removed initial version, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a2cf41d7fc 102/313: put in accidentally removed blank line from README, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion a8b652d00a 058/313: commented all functions, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b4fe25b51c 060/313: update tests for latest refactorings, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 49ae0ada64 076/313: keep open quote, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion aedcc114dc 105/313: Minor fixes to eliminate byte-compiler warnings., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8c771b10d1 082/313: fix typo, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9ca7e3a77f 085/313: Fixed errors in documentation, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 97cace2287 089/313: Split shopt sets; if one fails the rest can run, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 007765fdd1 111/313: Make bash-completion.el work under emacs trunk., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 102316ebf9 117/313: Test bash-completion-dynamic-complete-standard,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 094da8d6f8 115/313: Fallback to comint-dynamic-simple-complete for shellcommand, even under, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion acdedd0b48 122/313: Remove colon added by mistake in -test.el, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 4e8090c081 128/313: Wrap use of obsolete fn in backward compatibility code path., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f639154925 134/313: Add bash-completion-dynamic-complete-nocomint for issue #13, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 8fa510a174 136/313: Fix comments in header of bash-completion.el:, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion dda29cb470 137/313: Fix backward-compatibility code for supporting pre-24 Emacs versions,, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion f3b11e1221 139/313: Preserve original, quoted version of the string being completed when, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 2010d8bf9e 210/313: Fix history uncluttering, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ffe0640440 212/313: Cosmetic changes, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion bb044ff2f0 213/313: Try to handle prompts with ANSI escape sequences, ELPA Syncer, 2022/12/03