aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-01-16 23:28:26 -0500
committerGravatar Peter McGoron 2025-01-16 23:28:26 -0500
commit76907b11b323e515c839bd14c2b5c6cc51a1dc5b (patch)
tree7cc26af2539d65c494a8ec4f3dccd2a7db55ea4c /tests
parentsplit and search (diff)
add a generating thunk for split
Diffstat (limited to '')
-rw-r--r--tests/run.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run.scm b/tests/run.scm
index c2e06ec..14800ba 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -211,7 +211,8 @@
(call/inserted
(lambda (left middle right node)
(let-values (((new-left found? new-right)
- (split number-comparator node middle)))
+ (split number-comparator node middle
+ (lambda () #f))))
found?))))
(test-group "split finds"
@@ -221,7 +222,8 @@
(call-w/o-inserted
(lambda (left middle right node)
(let-values (((new-left found? new-right)
- (split number-comparator node middle)))
+ (split number-comparator node middle
+ (lambda () #f))))
(not found?)))))
(test-group "split does not find"