summaryrefslogtreecommitdiff
path: root/test/src/minibuf-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/minibuf-tests.el')
-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 @@
(minibuf-tests--test-completion-regexp
#'minibuf-tests--strings-to-symbol-hashtable))
+(ert-deftest test-try-completion-ignore-case ()
+ (let ((completion-ignore-case t))
+ (should (equal (try-completion "bar" '("bAr" "barfoo")) "bAr"))
+ (should (equal (try-completion "bar" '("bArfoo" "barbaz")) "bar"))
+ (should (equal (try-completion "bar" '("bArfoo" "barbaz"))
+ (try-completion "bar" '("barbaz" "bArfoo"))))
+ ;; bug#11339
+ (should (equal (try-completion "baz" '("baz" "bAz")) "baz")) ;And not `t'!
+ (should (equal (try-completion "baz" '("bAz" "baz"))
+ (try-completion "baz" '("baz" "bAz"))))))
+
;;; minibuf-tests.el ends here