add test for first/last on empty structures
This commit is contained in:
parent
6a2afccbfd
commit
7d3c0ca7cb
2 changed files with 8 additions and 1 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
0.5.5
|
||||
0.5.6
|
||||
|
|
|
|||
|
|
@ -362,3 +362,10 @@
|
|||
(transform k1 inc)
|
||||
(transform k2 inc)))
|
||||
))
|
||||
|
||||
(deftest empty-pos-transform
|
||||
(is (empty? (select FIRST [])))
|
||||
(is (empty? (select LAST [])))
|
||||
(is (= [] (transform FIRST inc [])))
|
||||
(is (= [] (transform LAST inc [])))
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue