Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn list-items
  2.   [records]
  3.   (reduce concat []  (map vector (map :Name records) (repeat [:br]) )))
  4.  
  5. (def listofitems `("Fred" [:br] "Joe" [:br]))
  6.  
  7. (deftest list-items-test
  8.   (testing "item list html test"
  9.     (is (= (list-items [{:Name "Fred"} {:Name "Joe"}]) listofitems))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement