Add test for PartialFn equiv

This commit is contained in:
Juho Teperi 2018-12-31 12:55:11 +02:00
parent 02ca507e15
commit a1953f2733
1 changed files with 7 additions and 0 deletions

View File

@ -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))))