]> git.eshelyaron.com Git - emacs.git/commit
Fix test failures in test/lisp/minibuffer-tests.el
authorJoão Távora <joaotavora@gmail.com>
Sat, 11 Nov 2023 15:29:46 +0000 (15:29 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sat, 11 Nov 2023 16:13:52 +0000 (16:13 +0000)
commitfff9b6e37aaf7da22cf803441b96f47ddd92a027
tree21b0a34ae172e71d98702a30562b6193bfa45bb2
parentc9d7740574758d47c8864cbada5fd2a2b2ee8911
Fix test failures in test/lisp/minibuffer-tests.el

bug#48841, bug#47711

In some instances the test code needed to be updated to make different
assumptions about implementation details.

In others, like the ones about the completions-first-difference face,
minor parts of the actual user-visible behaviour were broken.

* test/lisp/minibuffer-tests.el (completion-test1): Robustify test.
(completion--pcm-score): Don't assume completion-score is stored
in string as a property.

* lisp/minibuffer.el (completion--hilit-from-re): Take new parameter.
(completion-pcm--hilit-commonality): Use it.
lisp/minibuffer.el
test/lisp/minibuffer-tests.el