aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-03-20 10:52:30 -0400
committerStefan Monnier2019-03-20 10:52:30 -0400
commit18fc4ac5294d85e37d9e544c04b5d4e89ef3237c (patch)
treeac4452f41fe3fde3b0fddd240c092f0984ab0b3e
parent78c9c2a110aa94e82c90549c81e8911a006ee538 (diff)
downloademacs-18fc4ac5294d85e37d9e544c04b5d4e89ef3237c.tar.gz
emacs-18fc4ac5294d85e37d9e544c04b5d4e89ef3237c.zip
* test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test
-rw-r--r--test/lisp/minibuffer-tests.el6
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 @@
74 'completion-table-with-predicate 74 'completion-table-with-predicate
75 full-collection no-A nil)))))) 75 full-collection no-A nil))))))
76 76
77(ert-deftest completion-table-subvert-test ()
78 (let* ((origtable '("A-hello" "A-there"))
79 (subvtable (completion-table-subvert origtable "B" "A")))
80 (should (equal (try-completion "B-hel" subvtable)
81 "B-hello"))))
82
77(provide 'completion-tests) 83(provide 'completion-tests)
78;;; completion-tests.el ends here 84;;; completion-tests.el ends here