[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))
- [nongnu] elpa/mentor updated (04eb7ade9a -> bbfad95d06), ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor bfb1ad2d6d 1/7: Add FUNDING.yml, ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor dae9cab02f 2/7: Fix references to Emacs, ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor 969459eeee 6/7: Make mentor-get-item-type non-interactive, ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor cf0bed2c75 5/7: Indentation fixes, ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor 6d56763b7d 4/7: Fix most checkdoc errors, ELPA Syncer, 2022/09/22
- [nongnu] elpa/mentor be9974684f 3/7: Add test for mentor-limit-num,
ELPA Syncer <=
- [nongnu] elpa/mentor bbfad95d06 7/7: Fix FUNDING.yml, ELPA Syncer, 2022/09/22