diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-03-20 10:52:30 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-03-20 10:52:30 -0400 |
commit | 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c (patch) | |
tree | ac4452f41fe3fde3b0fddd240c092f0984ab0b3e /test/lisp/minibuffer-tests.el | |
parent | 78c9c2a110aa94e82c90549c81e8911a006ee538 (diff) | |
download | emacs-18fc4ac5294d85e37d9e544c04b5d4e89ef3237c.tar.gz |
* test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test
Diffstat (limited to 'test/lisp/minibuffer-tests.el')
-rw-r--r-- | test/lisp/minibuffer-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/minibuffer-tests.el b/test/lisp/minibuffer-tests.el index 77bfea93716..35df7cc17f1 100644 --- 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 |