add test for #234

This commit is contained in:
Sunrim KIM (keen) 2014-11-03 13:33:57 +09:00
parent 7c9d12769e
commit 0edbf1f0d2
1 changed files with 19 additions and 0 deletions

19
t/issue/234.scm Normal file
View File

@ -0,0 +1,19 @@
(import (scheme base)
(picrin test))
(test-begin)
(define-syntax fard
(syntax-rules ()
((fard a b) (- a b))))
(test -1 (fard 1 2))
(define (fard a b)
(+ a b))
(test 3 (fard 1 2))
(test 3 (apply fard (list 1 2)))
(test-end)