Skip to content

Commit

Permalink
Flip the test now that reverse is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
jojojames committed Dec 3, 2024
1 parent 31821e8 commit 92c51b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fussy-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ Called from `fussy-all-completions'."
;; With `flx-strings-cache' candidate 1 loses to candidate 2 which is
;; not desirable for filenames.
(should
(< (get-text-property 0 'completion-score (nth 0 string-cache-res))
(get-text-property 0 'completion-score (nth 1 string-cache-res))))
(< (get-text-property 0 'completion-score (nth 1 string-cache-res))
(get-text-property 0 'completion-score (nth 0 string-cache-res))))

;; With `flx-file-cache', candidate 1 wins against candidate 2 which shows
;; `flx-file-cache' is more appropriate than `flx-strings-cache' for
;; filenames.
(should
(> (get-text-property 0 'completion-score (nth 0 file-cache-res))
(get-text-property 0 'completion-score (nth 1 file-cache-res))))))
(> (get-text-property 0 'completion-score (nth 1 file-cache-res))
(get-text-property 0 'completion-score (nth 0 file-cache-res))))))

(ert-deftest fussy-score-input-test ()
"Test various[TODO] inputs with `fussy-score'."
Expand Down

0 comments on commit 92c51b6

Please sign in to comment.