time-plus tests
[8sync.git] / tests / test-agenda.scm
index bbf22d28fbaaa98a1184092a9fe0fffeabef9612..e3e12c59a5491d2f09d4aae67a27fc265f66cd42 100644 (file)
       (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))
+
 
 \f
 ;;; Schedule tests