Advertisement
Guest User

Untitled

a guest
Jul 16th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (deftest code-test
  2.   (testing "Basic Code Test"
  3.     (is (= {:tag :pre :attrs nil :content {:tag :code :attrs {:class "src python"} :content ["some code here"]}}
  4.            ((clean-code "python") {:tag :pre :attrs {:class "src-python"} :content ["Some code here"]})
  5.            ))))
  6.  
  7.  
  8. OUTPUT:
  9. expected: (= {:tag :pre, :attrs nil, :content {:tag :code, :attrs {:class "src python"}, :content ["some code here"]}} ((clean-code "python") {:tag :pre, :attrs {:class "src-python"}, :content ["Some code here"]}))
  10.   actual: (not (= {:content {:content ["some code here"], :attrs {:class "src python"}, :tag :code}, :attrs nil, :tag :pre} {:tag :pre, :attrs nil, :content [{:tag :code, :attrs {:class "src python"}, :content ["Some code here"]}]}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement