[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f80835a 038/135: Added tests for considerations
From: |
Ian Dunn |
Subject: |
[elpa] master f80835a 038/135: Added tests for considerations |
Date: |
Mon, 17 Feb 2020 10:52:49 -0500 (EST) |
branch: master
commit f80835af84b1290fafb3fc27e68540692dc41917
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Added tests for considerations
---
org-edna-tests.el | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/org-edna-tests.el b/org-edna-tests.el
index d304c2a..3ffc5a8 100644
--- a/org-edna-tests.el
+++ b/org-edna-tests.el
@@ -150,6 +150,28 @@
;; Consideration
+(ert-deftest org-edna-consideration/all ()
+ (let ((blocks-blocking `("a" nil "b"))
+ (blocks-no-blocking `(nil nil nil)))
+ (should (string-equal (org-edna-handle-consideration 'all blocks-blocking)
"a"))
+ (should (not (org-edna-handle-consideration 'all blocks-no-blocking)))))
+
+(ert-deftest org-edna-consideration/integer ()
+ (let ((blocks-blocking `("a" "c" "b"))
+ (blocks-no-blocking `("a" nil "b"))
+ (blocks-empty `(nil nil nil)))
+ (should (string-equal (org-edna-handle-consideration 1 blocks-blocking)
"a"))
+ (should (not (org-edna-handle-consideration 1 blocks-no-blocking)))
+ (should (not (org-edna-handle-consideration 1 blocks-empty)))))
+
+(ert-deftest org-edna-consideration/float ()
+ (let ((blocks-blocking `("a" "c" "b"))
+ (blocks-no-blocking `("a" nil "b"))
+ (blocks-empty `(nil nil nil)))
+ (should (string-equal (org-edna-handle-consideration 0.25 blocks-blocking)
"a"))
+ (should (not (org-edna-handle-consideration 0.25 blocks-no-blocking)))
+ (should (not (org-edna-handle-consideration 0.25 blocks-empty)))))
+
(provide 'org-edna-tests)
;;; org-edna-tests.el ends here
- [elpa] master 180d05b 022/135: Added configuration option to use inheritance, (continued)
- [elpa] master 180d05b 022/135: Added configuration option to use inheritance, Ian Dunn, 2020/02/17
- [elpa] master b38a1ca 024/135: Added tests for ids and match finders, Ian Dunn, 2020/02/17
- [elpa] master 30fc4cd 023/135: Created finders for compatibility with org-depend, Ian Dunn, 2020/02/17
- [elpa] master 9916819 028/135: Added test for parsing multiple forms, Ian Dunn, 2020/02/17
- [elpa] master fc0dcc1 029/135: Added re-search condition, Ian Dunn, 2020/02/17
- [elpa] master c675036 030/135: Added test for empty argument list, Ian Dunn, 2020/02/17
- [elpa] master 7a3332d 032/135: Fixed error in re-search, Ian Dunn, 2020/02/17
- [elpa] master 6470c5f 033/135: Added test for todo action, Ian Dunn, 2020/02/17
- [elpa] master db23e3f 034/135: Added some more test headings, Ian Dunn, 2020/02/17
- [elpa] master aa259f0 037/135: Fix considerations, Ian Dunn, 2020/02/17
- [elpa] master f80835a 038/135: Added tests for considerations,
Ian Dunn <=
- [elpa] master 729a391 040/135: Added copyright and licensing information to all files, Ian Dunn, 2020/02/17
- [elpa] master 7379c4f 043/135: Added copyright date to source files, Ian Dunn, 2020/02/17
- [elpa] master 8a21978 042/135: Fixed copyright notices, Ian Dunn, 2020/02/17
- [elpa] master 11aaa52 053/135: Added Savannah project link to documentation, Ian Dunn, 2020/02/17
- [elpa] master 34e4d86 054/135: Fixed variable-set condition, Ian Dunn, 2020/02/17
- [elpa] master a758e6a 051/135: Added tests for finders, Ian Dunn, 2020/02/17
- [elpa] master 3f4595b 052/135: Finished rough draft of documentation, Ian Dunn, 2020/02/17
- [elpa] master 329b39e 058/135: Added installation and setup instructions to documentation, Ian Dunn, 2020/02/17
- [elpa] master e793f3c 047/135: Fixed bugs from last commit, Ian Dunn, 2020/02/17
- [elpa] master c29a951 045/135: Use example instead of src to make HTML export prettier, Ian Dunn, 2020/02/17