aboutsummaryrefslogtreecommitdiffstats
path: root/tests.scm
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-08-29 22:24:33 -0400
committerGravatar Peter McGoron 2024-08-29 22:24:33 -0400
commitf160ecaae1532cb61e3158756b24193fb67c895e (patch)
tree05bc9c2e02a174da3732ab9f104460c59f2b1eb6 /tests.scm
parentminiscm: add mutable string emulation and char->integer (diff)
add sets
Diffstat (limited to 'tests.scm')
-rw-r--r--tests.scm20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests.scm b/tests.scm
index 717a0be..a7b4b67 100644
--- a/tests.scm
+++ b/tests.scm
@@ -48,10 +48,22 @@
(loop (cdr rest)))))))))
(loop tests))))
+(define report-tests
+ (lambda (tests)
+ (let ((res (run-tests tests)))
+ (if (eq? res #t)
+ (display "passed")
+ (begin
+ (display "failed: ")
+ (display res))))
+ (newline)))
+
(load "doubly-linked-list.scm")
-(display "running doubly linked list tests")
+(display "running doubly linked list tests: ")
(newline)
-(if (run-tests %dl:tests)
- (display "doubly linked list tests: passed")
- (display "doubly linked list tests: failed"))
+(report-tests %dl:tests)
+
+(load "set.scm")
+(display "running string BST-AVL tests")
(newline)
+(report-tests %set:tests)