]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/minibuffer-tests.el (completion-table-subvert-test): New test
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 Mar 2019 14:52:30 +0000 (10:52 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 Mar 2019 14:52:30 +0000 (10:52 -0400)
test/lisp/minibuffer-tests.el

index 77bfea93716b4f6a4deeee3cf87bcda2a92d1e66..35df7cc17f18267269c82ca401db4b6a1e3bbd3a 100644 (file)
                     '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