summaryrefslogtreecommitdiff
path: root/core_test.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'core_test.fnl')
-rw-r--r--core_test.fnl9
1 files changed, 7 insertions, 2 deletions
diff --git a/core_test.fnl b/core_test.fnl
index c618e9e..25f9e1d 100644
--- a/core_test.fnl
+++ b/core_test.fnl
@@ -423,10 +423,15 @@
(deftest math-functions
(testing inc
(assert-eq (inc 1) 2)
- (assert-eq (inc -1) 0))
+ (assert-eq (inc -1) 0)
+ (assert* (not (pcall inc)))
+ (assert* (not (pcall inc nil))))
+
(testing dec
(assert-eq (dec 1) 0)
- (assert-eq (dec -1) -2)))
+ (assert-eq (dec -1) -2)
+ (assert* (not (pcall dec)))
+ (assert* (not (pcall dec nil)))))
(deftest table-access
(testing get