aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/minibuf-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/minibuf-tests.el b/test/src/minibuf-tests.el
index 12b018b8228..c64892822d6 100644
--- a/test/src/minibuf-tests.el
+++ b/test/src/minibuf-tests.el
@@ -399,5 +399,16 @@
399 (minibuf-tests--test-completion-regexp 399 (minibuf-tests--test-completion-regexp
400 #'minibuf-tests--strings-to-symbol-hashtable)) 400 #'minibuf-tests--strings-to-symbol-hashtable))
401 401
402(ert-deftest test-try-completion-ignore-case ()
403 (let ((completion-ignore-case t))
404 (should (equal (try-completion "bar" '("bAr" "barfoo")) "bAr"))
405 (should (equal (try-completion "bar" '("bArfoo" "barbaz")) "bar"))
406 (should (equal (try-completion "bar" '("bArfoo" "barbaz"))
407 (try-completion "bar" '("barbaz" "bArfoo"))))
408 ;; bug#11339
409 (should (equal (try-completion "baz" '("baz" "bAz")) "baz")) ;And not `t'!
410 (should (equal (try-completion "baz" '("bAz" "baz"))
411 (try-completion "baz" '("baz" "bAz"))))))
412
402 413
403;;; minibuf-tests.el ends here 414;;; minibuf-tests.el ends here