diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2023-05-01 07:56:42 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2023-05-01 07:56:42 -0700 |
| commit | a89d6c82e981fec7d6e4c975e083d2b9e04467ad (patch) | |
| tree | d5445ceb797473dd45ac006c337d990e5dd6f0d4 /lib/csc/compare-test.csc | |
| parent | Fix bugs with recursive macros and empty template. (diff) | |
| download | chromatopelma-a89d6c82e981fec7d6e4c975e083d2b9e04467ad.tar.zst | |
Rewrite most of the compiler.
This represents a major step back in terms of functionality, and amount
of code. The latter I think constitutes a major win. Next steps are to
reimplement syntax-rules, call/cc, and call-with-values.
Diffstat (limited to 'lib/csc/compare-test.csc')
| -rw-r--r-- | lib/csc/compare-test.csc | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/lib/csc/compare-test.csc b/lib/csc/compare-test.csc deleted file mode 100644 index b710115..0000000 --- a/lib/csc/compare-test.csc +++ /dev/null @@ -1,98 +0,0 @@ -(define-library (csc compare-test) - (import (scheme base) - (only (csc match) - define-match-record-type) - (only (csc testing) - assert - test) - (csc compare)) - (begin - - - (test diff-list - (assert - (string=? - " ( - 1 - - 2 - 3 - + 3.5 - 4 - ) -" - (diff '(1 2 3 4) '(1 3 3.5 4))))) - - - (define-match-record-type <test-type> - (make-test-type a b) - test-type? - %test-type - (a test-type-a) - (b test-type-b)) - - - (test diff-record - (assert - (string=? - " ( - (!type . - <test-type> - ) - (a . - 5 - ) - (b . - - 5 - + 6 - ) - ) -" - (diff (make-test-type 5 5) (make-test-type 5 6) (cons test-type? %test-type))))) - - - (test diff-multiline-string - (assert - (string=? - " ( - (!type . - string - ) - (value . - ( - line-one - - line-two - line-three - ) - ) - ) -" - (diff "line-one\nline-two\nline-three" "line-one\nline-three")))) - - - (test diff-vector - (assert - (string=? - " ( - (!type . - vector - ) - (value . - ( - 1 - - 2 - 3 - ) - ) - ) -" - (diff #(1 2 3) #(1 3))))) - - - (test diff-symbol-list - (assert - (string=? - "- symbol -+ ( -+ ) -" - (diff 'symbol '())))))) |
