projects
/
scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ac36d
)
Add test case
author
Luke Lau
<luke_lau@icloud.com>
Sun, 4 Aug 2019 18:04:27 +0000
(19:04 +0100)
committer
Luke Lau
<luke_lau@icloud.com>
Sun, 4 Aug 2019 18:04:27 +0000
(19:04 +0100)
tests.scm
patch
|
blob
|
history
diff --git
a/tests.scm
b/tests.scm
index c4b81f15158e4a7f63152edab863dc9c5e10988b..cd0d98be49e20a11140b0e533281793ed4e9643c 100644
(file)
--- a/
tests.scm
+++ b/
tests.scm
@@
-121,3
+121,15
@@
(go p 1)))])
(pow 4 2))
16)
+
+(test-prog-stdout '(let ([f (lambda (n)
+ (if (= n 0)
+ 0
+ (let ()
+ (print "a")
+ (g (- n 1)))))]
+ [g (lambda (m)
+ (let ()
+ (print "b")
+ (f (- m 1))))])
+ (f 10)) "ababababab")