Add specs and single arity for word-cloud

This commit is contained in:
xtreak 2018-03-24 15:02:31 +05:30
parent ebe2fe049d
commit 5832b23d3b
3 changed files with 50 additions and 4 deletions

View file

@ -12,7 +12,7 @@
(deftest image-dimensions-test
(testing "Test width and height of the generated image"
(let [freq-map (zipmap (range 100 130) (range 300))
(let [freq-map (zipmap (map str (range 100 130)) (range 300))
word-cloud (word-cloud freq-map
{:dimension {:width 600
:height 600}