Add tests for fmap

This commit is contained in:
Felisp 2024-01-08 03:29:53 +01:00
parent 618304f5eb
commit 039c48fe16

View file

@ -60,3 +60,8 @@
:fst 1
:scnd {:super :nested}}}
(map-apply-defaults first-map deep-pony-map)))))
(deftest fmap-test
(testing "Applying function to values of map"
(is (= {:a 2 :b 3} (fmap (fn [k v] (inc v))
{:a 1 :b 2})))))