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

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

[nongnu] elpa/mentor be9974684f 3/7: Add test for mentor-limit-num


From: ELPA Syncer
Subject: [nongnu] elpa/mentor be9974684f 3/7: Add test for mentor-limit-num
Date: Thu, 22 Sep 2022 09:59:09 -0400 (EDT)

branch: elpa/mentor
commit be9974684ff3af832b73ed7ea7a12683b07f7cd4
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Add test for mentor-limit-num
---
 test/mentor-tests.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/mentor-tests.el b/test/mentor-tests.el
index aedd0fef79..427c08f460 100644
--- a/test/mentor-tests.el
+++ b/test/mentor-tests.el
@@ -62,6 +62,12 @@
   (should (equal (mentor-remove-subdomains "baz1.com") "baz1.com"))
   (should (equal (mentor-remove-subdomains "localhost") "localhost")))
 
+(ert-deftest mentor-limit-num ()
+  (should (= (mentor-limit-num 1 3 5) 3))
+  (should (= (mentor-limit-num 3 3 5) 3))
+  (should (= (mentor-limit-num 5 3 5) 5))
+  (should (= (mentor-limit-num 9 3 5) 5)))
+
 (ert-deftest mentor-rtorrent-bytes-to-human ()
   (let* ((kb 1024.0)
          (mb (* 1024.0 kb))



reply via email to

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