emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/autothemer 67224c4a4c 21/29: Fix test run


From: ELPA Syncer
Subject: [nongnu] elpa/autothemer 67224c4a4c 21/29: Fix test run
Date: Sun, 28 Aug 2022 22:58:46 -0400 (EDT)

branch: elpa/autothemer
commit 67224c4a4cde2b6325690beca3f48c2fc3c955e3
Author: jasonm23 <jasonm23@gmail.com>
Commit: jasonm23 <jasonm23@gmail.com>

    Fix test run
---
 autothemer.el | 4 ++--
 bin/test      | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/autothemer.el b/autothemer.el
index c89a9f6603..a283e65389 100644
--- a/autothemer.el
+++ b/autothemer.el
@@ -501,14 +501,14 @@ In `(h s v)' `h', `s' and `v' are `0.0..1.0'."
       (> a b)))
 
 (defun autothemer-hue-sat-order (a b)
-  "Return t if the hue and sat of a > b."
+  "Return t if the hue and sat of A > B."
   (let ((a-hue (autothemer-color-hue (autothemer--color-value a)))
         (b-hue (autothemer-color-hue (autothemer--color-value b)))
         (a-sat (autothemer-color-sat (autothemer--color-value a)))
         (b-sat (autothemer-color-sat (autothemer--color-value b)))
         (sort-hash-fmt "%016s-%016s"))
     (string> (format sort-hash-fmt a-hue a-sat)
-             (format sort-hash-fmt b-hue b-sat)))
+             (format sort-hash-fmt b-hue b-sat))))
 
 (defun autothemer-sort-palette (theme-colors &optional fn)
   "Produce a list of sorted THEME-COLORS using FN.
diff --git a/bin/test b/bin/test
index c2482479c8..a2ff50bf3b 100755
--- a/bin/test
+++ b/bin/test
@@ -25,13 +25,14 @@ $("$EMACS" --version)
 INFO
 
 "$EMACS" --batch \
+  -eval "(setq load-prefer-newer t)" \
   -eval "(add-to-list 'load-path \"${dash}\")" \
   -eval "(add-to-list 'load-path \".\")" \
   -l ert \
   -l dash \
-  -l ./autothemer.el \
-  -l ./tests/autothemer-tests.el \
-  --eval "(ert-run-tests-batch-and-exit)"
+  -l autothemer.el \
+  -l tests/autothemer-tests.el \
+  -f ert-run-tests-batch-and-exit
 exitcode=$?
 
 echo "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]