X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2Ftest-agenda.scm;h=e3e12c59a5491d2f09d4aae67a27fc265f66cd42;hb=98edc693d1eb7ebe72c6ce722cf716c670cb21e3;hp=bbf22d28fbaaa98a1184092a9fe0fffeabef9612;hpb=2a468eba78a9fee4cff48550bb675130daea1e1f;p=8sync.git diff --git a/tests/test-agenda.scm b/tests/test-agenda.scm index bbf22d2..e3e12c5 100644 --- a/tests/test-agenda.scm +++ b/tests/test-agenda.scm @@ -68,6 +68,16 @@ (time-delta+ '(2 . 3) tdelta) '(12 . 4))) +(test-equal (time-minus '(100 . 100) '(50 . 66)) + '(50 . 34)) +(test-equal (time-minus '(2 . 0) '(0 . 1)) + '(1 . 999999)) + +(test-equal (time-plus '(50 . 34) '(50 . 66)) + '(100 . 100)) +(test-equal (time-plus '(1 . 999999) '(1 . 2)) + '(3 . 1)) + ;;; Schedule tests