From: Stefan Monnier Date: Wed, 7 Feb 2024 16:15:59 +0000 (-0500) Subject: * test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e42319c7c817c245436be12a2a1cf60e079f8dee;p=emacs.git * test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test (cherry picked from commit 2f3c435056dac17242b2d147bc73df8742c3e374) --- diff --git a/test/lisp/minibuffer-tests.el b/test/lisp/minibuffer-tests.el index 960c142da0f..e991a8c3bab 100644 --- a/test/lisp/minibuffer-tests.el +++ b/test/lisp/minibuffer-tests.el @@ -201,6 +201,13 @@ 'completions-first-difference) return pos)) +(ert-deftest completion-test--pcm-bug38458 () + (should (equal (let ((completion-ignore-case t)) + (completion-pcm--merge-try '("tes" point "ing") + '("Testing" "testing") + "" "")) + '("testing" . 4)))) + (ert-deftest completion-pcm-test-1 () ;; Point is at end, this does not match anything (should (null