branch: elpa/bash-completion
commit c28492a749a733fa5c702607fd0f67378a65c550
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
wordbreak before and after
---
bash-completion_test.el | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/bash-completion_test.el b/bash-completion_test.el
index 81d0b71c46..d526ed5797 100644
--- a/bash-completion_test.el
+++ b/bash-completion_test.el
@@ -351,7 +351,7 @@ garbage
(bash-completion-ends-with "hello world" "wurld")
(bash-completion-ends-with "hello" ""))
'(nil t nil t))
-
+
("bash-completion-last-wordbreak-split"
(list
(bash-completion-last-wordbreak-split "a:b:c:d:e")
@@ -363,6 +363,23 @@ garbage
("hello>" . "world")
("" . "hello")))
+
+ ("bash-completion-before-last-wordbreak"
+ (list
+ (bash-completion-before-last-wordbreak "a:b:c:d:e")
+ (bash-completion-before-last-wordbreak "hello=world")
+ (bash-completion-before-last-wordbreak "hello>world")
+ (bash-completion-before-last-wordbreak "hello"))
+ '("a:b:c:d:" "hello=" "hello>" ""))
+
+ ("bash-completion-after-last-wordbreak"
+ (list
+ (bash-completion-after-last-wordbreak "a:b:c:d:e")
+ (bash-completion-after-last-wordbreak "hello=world")
+ (bash-completion-after-last-wordbreak "hello>world")
+ (bash-completion-after-last-wordbreak "hello"))
+ '("e" "world" "world" "hello"))
+
))
;; ---------- integration tests