diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-07-26 19:24:10 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-07-26 19:24:10 -0700 |
| commit | becfaeb778a3c8ba241e2155b998d6b27dcfad0c (patch) | |
| tree | 97ca02178660fe958026a707905eac1c5ebd188d /csc/assert-test.csc | |
| parent | b8ed2e52cd7decd56b195df5363fcc0f17cc3805 (diff) | |
| download | chromatopelma-becfaeb778a3c8ba241e2155b998d6b27dcfad0c.tar.zst | |
Fix a potential R7RS issue.
I was using the load procedure to load a program, but by a strict
reading of R7RS, load can only handle expressions and definitions, not
imports. So instead I'm defining each test as a library, and using the
environment procedure to load them at runtime.
Diffstat (limited to 'csc/assert-test.csc')
| -rw-r--r-- | csc/assert-test.csc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/csc/assert-test.csc b/csc/assert-test.csc index 4341ac7..4e8d2d3 100644 --- a/csc/assert-test.csc +++ b/csc/assert-test.csc @@ -1,14 +1,14 @@ -(import (scheme base) - (only (csc testing) - assert-raises - test) - (csc assert)) - - -(test assert-raises - (assert-raises error-object? - (assert #f))) - - -(test assert-ok - (assert #t)) +(define-library (csc assert-test) + (import (scheme base) + (only (csc testing) + assert-raises + test) + (csc assert)) + (begin + (test assert-raises + (assert-raises error-object? + (assert #f))) + + + (test assert-ok + (assert #t)))) |
