projects
/
scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c2365
)
Add a bunch more tests
author
Luke Lau
<luke_lau@icloud.com>
Sat, 27 Jul 2019 23:04:49 +0000
(
00:04
+0100)
committer
Luke Lau
<luke_lau@icloud.com>
Sat, 27 Jul 2019 23:04:49 +0000
(
00:04
+0100)
tests.scm
patch
|
blob
|
history
diff --git
a/tests.scm
b/tests.scm
index 0e70480b41eb93a80134bfb9f124792f9b5b758f..4ff6d760315700a6b862b1ce0818dafb78956640 100644
(file)
--- a/
tests.scm
+++ b/
tests.scm
@@
-54,3
+54,8
@@
; passing builtins about
(test-prog '((lambda (x) ((lambda (a b) (a b 3)) + x)) 3) 6)
+(test-prog '(bool->int ((lambda (x) (x #f)) !)) 1)
+(test-prog '((lambda (f) (f #t)) bool->int) 1)
+(test-prog-stdout '(let () ((lambda (f) (f "foo")) print) 0) "foo")
+(test-prog '((lambda (f) (f 3 3)) (lambda (x y) (bool->int (= x y)))) 1)
+(test-prog '(bool->int ((lambda (f) (! (f 2 3))) =)) 1)