]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Feb 2024 16:15:59 +0000 (11:15 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 19:59:56 +0000 (20:59 +0100)
(cherry picked from commit 2f3c435056dac17242b2d147bc73df8742c3e374)

test/lisp/minibuffer-tests.el

index 960c142da0fd8f54c4ff5ed115f8a9d234c9c864..e991a8c3babc5b37fbe6ebd7ef3e21d4ceb38a98 100644 (file)
                     '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