Add test for juxt
This commit is contained in:
parent
f8a5c151f8
commit
eb8fe0b085
@ -649,3 +649,10 @@
|
||||
(assert-true ((comp even? inc +) 1 2 3 4 5))
|
||||
(assert-true (= 5 ((comp) 5)))
|
||||
(assert (is (comp) identity)))
|
||||
|
||||
(defn test-juxt []
|
||||
"NATIVE: test juxt"
|
||||
(assert-equal ((juxt min max sum) [1 2 3 4 5 6])
|
||||
[1 6 21])
|
||||
(assert-equal ((juxt identity) 42)
|
||||
[42]))
|
||||
|
Loading…
Reference in New Issue
Block a user