Anybody that knows me for 5 minutes knows I love writing unit tests. I’ve been told “you’re sick” by friends as they shake their heads at me..
I got lots of good ideas for simplifiying (and making more idomatic) the code in my last post so I wanted to rewrite parts of the code to be use those ideas. Perfect time to practice writing clojure tests!
My first test:
1 2 3 4 5 6 7
Using the suggestions I rewrote testify-data as
Alot better than what I had:
into, since the anonymous function is redundant there:
And the test for that:
1 2 3 4 5 6
Yay much better!
Gary Verhaegen for your feedback on my last post.