Add another function test
This commit is contained in:
parent
7db1cce024
commit
1df85fd67c
1 changed files with 7 additions and 0 deletions
|
@ -2,3 +2,10 @@
|
|||
|
||||
(expect "inc 5 == 6" (eq (inc 5) 6))
|
||||
(expect "inc 6 == 7" (eq (inc 6) 7))
|
||||
|
||||
(defun range (start end)
|
||||
(if (>= start end)
|
||||
'()
|
||||
(cons start (range (+ start 1) end))))
|
||||
|
||||
(expect "range" (equal (range 1 10) '(1 2 3 4 5 6 7 8 9)))
|
||||
|
|
Loading…
Reference in a new issue