From 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 20 Mar 2019 10:52:30 -0400 Subject: [PATCH] * test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test --- test/lisp/minibuffer-tests.el | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5