Skip to content
Snippets Groups Projects
Unverified Commit 1166d8f0 authored by metamben's avatar metamben Committed by GitHub
Browse files

Test that metabase.util/assoc-default preserves metadata (#34716)

parent 9b3757d9
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,10 @@
(u/assoc-default {:x nil} :x 0 :y nil :z 1))))
(testing "multiple defaults for the same key"
(is (= {:x nil, :y 1, :z 2}
(u/assoc-default {:x nil} :x 0, :y nil, :y 1, :z 2, :x 3, :z 4)))))
(u/assoc-default {:x nil} :x 0, :y nil, :y 1, :z 2, :x 3, :z 4))))
(testing "preserves metadata"
(is (= {:m true}
(meta (u/assoc-default ^:m {:x 0} :y 1 :z 2 :a nil))))))
(deftest ^:parallel classify-changes-test
(testing "classify correctly"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment