Minilisp.pm/t/function.t

5 lines
99 B
Perl
Raw Normal View History

2021-04-02 17:11:34 +02:00
(defun inc (a) (+ a 1))
(expect "inc 5 == 6" (eq (inc 5) 6))
(expect "inc 6 == 7" (eq (inc 6) 7))