add test for #234
This commit is contained in:
parent
7c9d12769e
commit
0edbf1f0d2
|
@ -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)
|
Loading…
Reference in New Issue