|
From: | Stefan Monnier |
Subject: | bug#42149: Substring and flex completion ignore implicit trailing ‘any’ |
Date: | Mon, 28 Dec 2020 11:03:54 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> This is one of them. > > (ert-deftest completion-pcm-test-3 () > ;; Full match! > (should (eql > (completion--pcm-score > (car (completion-pcm-all-completions > "R" '("R" "hello") nil 1))) > 1.0))) BTW, a good improvement to the tests would be to replace the score equality tests with score ordering comparisons (like "score of foo > score of bar") since it'd be perfectly OK to use a different scoring system which gives different values as long as the relative ordering is still obeyed. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |