picrin/t/issue/234.scm

20 lines
246 B
Scheme
Raw Permalink Normal View History

2014-11-02 23:33:57 -05:00
(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)