projects
/
8sync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c02ea81
)
add true-after-n-times to tests file
author
Christopher Allan Webber
<cwebber@dustycloud.org>
Thu, 19 Nov 2015 21:25:55 +0000
(15:25 -0600)
committer
Christopher Allan Webber
<cwebber@dustycloud.org>
Thu, 19 Nov 2015 21:25:55 +0000
(15:25 -0600)
tests.scm
patch
|
blob
|
history
diff --git
a/tests.scm
b/tests.scm
index 0c5862431d63072a517fe3b547e4f92870baa6b0..c7fe1cd32a76cad657a4c2d1b91bafb995f4fb15 100644
(file)
--- a/
tests.scm
+++ b/
tests.scm
@@
-211,6
+211,12
@@
(if message (set! messages (append messages (list message))))
messages)))
+(define (true-after-n-times n)
+ (let ((count 0))
+ (lambda _
+ (set! count (+ count 1))
+ (if (>= count n) #t #f))))
+
;; the dummy test
(define speaker (speak-it))