Skip to content

Commit

Permalink
Update core_test.clj
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Jun 5, 2024
1 parent caa3a46 commit 67f871f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/swark/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
(t/is (thrown? AssertionError (sut/map-vals nil m)))
(t/is (nil? (sut/map-vals inc nil)))))

t/deftest map-keys
(t/deftest map-keys
(let [m {:a 1 :b 2}}]
(t/testing "Returns the map with f applied to all it's keys"
(t/is (= {:test/a 1, :test/b 2} (sut/map-keys (partial keyword "test") m)))
(t/is (= {:test/b 1, :c 2}
(sut/map-keys
{:a :test/b :b :c} m))))

(t/is (thrown? AssertionError (sut/map-keyss nil m)))
(t/is (thrown? AssertionError (sut/map-keys nil m)))
(t/is (nil? (sut/map-keys inc nil)))))

(t/deftest filter-keys
Expand Down

0 comments on commit 67f871f

Please sign in to comment.