From 92c51b6425e56e4e409533aca83e557899b2e0a1 Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Tue, 3 Dec 2024 18:40:10 -0500 Subject: [PATCH] Flip the test now that reverse is gone --- fussy-test.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fussy-test.el b/fussy-test.el index 252ba41..6c94427 100644 --- a/fussy-test.el +++ b/fussy-test.el @@ -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'."