mirror of https://github.com/status-im/reagent.git
Add test for PartialFn equiv
This commit is contained in:
parent
02ca507e15
commit
a1953f2733
|
@ -69,3 +69,10 @@
|
||||||
{:class ["baz" "quux"]})
|
{:class ["baz" "quux"]})
|
||||||
(util/merge-props nil {:class ["foo" "bar" "baz" "quux"]})
|
(util/merge-props nil {:class ["foo" "bar" "baz" "quux"]})
|
||||||
(util/merge-props {:class ["foo" "bar" "baz" "quux"]})))))
|
(util/merge-props {:class ["foo" "bar" "baz" "quux"]})))))
|
||||||
|
|
||||||
|
(deftest partial-fn-test
|
||||||
|
(is (= (util/make-partial-fn println ["a"])
|
||||||
|
(util/make-partial-fn println ["a"])))
|
||||||
|
|
||||||
|
(is (not (= (util/make-partial-fn println ["a"])
|
||||||
|
nil))))
|
||||||
|
|
Loading…
Reference in New Issue