Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (deftest code-test
- (testing "Basic Code Test"
- (is (= {: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"]})
- ))))
- OUTPUT:
- 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"]}))
- 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