diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-01-15 22:40:01 -0800 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-01-15 22:40:01 -0800 |
| commit | 0d7cb228076354f893527bce2d426e21697832a9 (patch) | |
| tree | fa12d1afff4cdb077437b11544c9ef8f299cd88e /csc/assert-test.csc | |
| parent | Write a first draft macro expander. (diff) | |
| download | chromatopelma-0d7cb228076354f893527bce2d426e21697832a9.tar.zst | |
Finish the macro expander.
It works!! At least it passes all the test cases.
Next I will:
1. finish the builtins,
2. add a conversion to IR2 in continuation passing style,
3. add a compiler from IR2 to bytecode,
4. and add an option to the frontend compiler to generate a
standalone executable.
Diffstat (limited to 'csc/assert-test.csc')
| -rw-r--r-- | csc/assert-test.csc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/csc/assert-test.csc b/csc/assert-test.csc new file mode 100644 index 0000000..4341ac7 --- /dev/null +++ b/csc/assert-test.csc @@ -0,0 +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)) |
