projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c9c2a
)
* test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 20 Mar 2019 14:52:30 +0000
(10:52 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 20 Mar 2019 14:52:30 +0000
(10:52 -0400)
test/lisp/minibuffer-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/minibuffer-tests.el
b/test/lisp/minibuffer-tests.el
index 77bfea93716b4f6a4deeee3cf87bcda2a92d1e66..35df7cc17f18267269c82ca401db4b6a1e3bbd3a 100644
(file)
--- a/
test/lisp/minibuffer-tests.el
+++ b/
test/lisp/minibuffer-tests.el
@@
-74,5
+74,11
@@
'completion-table-with-predicate
full-collection no-A nil))))))
+(ert-deftest completion-table-subvert-test ()
+ (let* ((origtable '("A-hello" "A-there"))
+ (subvtable (completion-table-subvert origtable "B" "A")))
+ (should (equal (try-completion "B-hel" subvtable)
+ "B-hello"))))
+
(provide 'completion-tests)
;;; completion-tests.el ends here