aboutsummaryrefslogtreecommitdiff
path: root/tests/functions.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.lisp')
-rw-r--r--tests/functions.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functions.lisp b/tests/functions.lisp
index ef6b83e..0025827 100644
--- a/tests/functions.lisp
+++ b/tests/functions.lisp
@@ -30,3 +30,12 @@
(is eq nil (parse-integer* "a2048abcdef"))
(is eq nil (parse-integer* "garbage"))
(fail (parse-integer* nil)))
+
+(define-test (function-test range)
+ :compile-at :execute
+ (fail (range 1 0))
+ (fail (range nil nil))
+ (fail (range "a" "b"))
+ (true (null (range 1 1)))
+ (is equal '(1 2 3 4) (range 1 5))
+ (is equal '(-3 -2 -1 0) (range -3 1)))