mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
New test file
This commit is contained in:
parent
a8527380a6
commit
0353930feb
1 changed files with 9 additions and 0 deletions
9
tests/when.scm
Normal file
9
tests/when.scm
Normal file
|
@ -0,0 +1,9 @@
|
|||
(import (scheme base) (scheme write))
|
||||
(define-syntax when
|
||||
(syntax-rules ()
|
||||
((when test result1 result2 ...)
|
||||
(if test
|
||||
(begin result1 result2 ...)))))
|
||||
|
||||
(write
|
||||
(when #t 1))
|
Loading…
Add table
Reference in a new issue