Throw error when array is passed to variadic prelude function. Close #114.
This commit is contained in:
@@ -704,4 +704,21 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
|
||||
|
||||
(function _testPureKissClasses []
|
||||
(PureKissClass.test)
|
||||
(Assert.pass))
|
||||
|
||||
(function _testArraysToVariadic []
|
||||
(let [a [5 6 7]]
|
||||
(assertThrows (+ a))
|
||||
(assertThrows (- a))
|
||||
(assertThrows (* a))
|
||||
(assertThrows (/ a))
|
||||
(assertThrows (min a))
|
||||
(assertThrows (max a))
|
||||
(assertThrows (= a))
|
||||
(assertThrows (< a))
|
||||
(assertThrows (<= a))
|
||||
(assertThrows (> a))
|
||||
(assertThrows (>= a))
|
||||
|
||||
)
|
||||
(Assert.pass))
|
Reference in New Issue
Block a user