projects
/
8sync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write out test-agenda, not tests-agenda
[8sync.git]
/
tests
/
test-agenda.scm
diff --git
a/tests/test-agenda.scm
b/tests/test-agenda.scm
index 73cd51876083760c1d84e6900fac43b68969e3e8..bed99953d981b29f374f2ae970392a5a5f6aeeb1 100644
(file)
--- a/
tests/test-agenda.scm
+++ b/
tests/test-agenda.scm
@@
-25,7
+25,7
@@
#:use-module (ice-9 receive)
#:use-module (eightsync agenda))
#:use-module (ice-9 receive)
#:use-module (eightsync agenda))
-(test-begin "test
s
-agenda")
+(test-begin "test-agenda")
\f
\f
@@
-73,6
+73,11
@@
(test-equal (time-minus '(2 . 0) '(0 . 1))
'(1 . 999999))
(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
\f
;;; Schedule tests
@@
-233,7
+238,7
@@
(test-equal (run-request-when run-two-squared) '(88 . 0)))
(test-equal (run-request-when run-two-squared) '(88 . 0)))
-;;; %run, %sync and friends tests
+;;; %run, %
8
sync and friends tests
;;; -----------------------------
(define (test-%run-and-friends async-request expected-when)
;;; -----------------------------
(define (test-%run-and-friends async-request expected-when)
@@
-258,10
+263,10
@@
8)
;; whoa, I'm surprised equal? can
;; compare records like this
8)
;; whoa, I'm surprised equal? can
;; compare records like this
- (tdelta 8
0
))
+ (tdelta 8))
;; TODO: test %port-request
;; TODO: test %port-request
-;; TODO: test %sync and friends!
+;; TODO: test %
8
sync and friends!
;;; Agenda tests
;;; Agenda tests
@@
-314,7
+319,7
@@
(speaker "Today I went to the zoo and I saw...\n")
(speaker
(string-concatenate
(speaker "Today I went to the zoo and I saw...\n")
(speaker
(string-concatenate
- `("A " ,(symbol->string (%sync (%run (return-monkey)))) "!\n"))))
+ `("A " ,(symbol->string (%
8
sync (%run (return-monkey)))) "!\n"))))
(let ((q (make-q)))
(set! speaker (speak-it))
(let ((q (make-q)))
(set! speaker (speak-it))
@@
-329,6
+334,6
@@
;; End tests
;; End tests
-(test-end "test
s
-agenda")
+(test-end "test-agenda")
;; (test-exit)
;; (test-exit)