diff options
| author | 2024-08-29 22:24:33 -0400 | |
|---|---|---|
| committer | 2024-08-29 22:24:33 -0400 | |
| commit | f160ecaae1532cb61e3158756b24193fb67c895e (patch) | |
| tree | 05bc9c2e02a174da3732ab9f104460c59f2b1eb6 /tests.scm | |
| parent | miniscm: add mutable string emulation and char->integer (diff) | |
add sets
Diffstat (limited to 'tests.scm')
| -rw-r--r-- | tests.scm | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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) |
