add test for first/last on empty structures

This commit is contained in:
Nathan Marz 2015-06-29 18:16:33 -04:00
parent 6a2afccbfd
commit 7d3c0ca7cb
2 changed files with 8 additions and 1 deletions

View file

@ -1 +1 @@
0.5.5 0.5.6

View file

@ -362,3 +362,10 @@
(transform k1 inc) (transform k1 inc)
(transform k2 inc))) (transform k2 inc)))
)) ))
(deftest empty-pos-transform
(is (empty? (select FIRST [])))
(is (empty? (select LAST [])))
(is (= [] (transform FIRST inc [])))
(is (= [] (transform LAST inc [])))
)