Re: Best way to unit test

2018-03-29 Thread Moe Aboulkheir
bj, Is 'current-date' a top-level var in that file? If so, a good start might be a test which used with with-redefs to supply a contrived value for 'current-date', and then validated dates on either side of it. It may be less brittle to support s

Best way to unit test

2018-03-28 Thread bj
What is the best way to write unit test case for following situation? [date-for-validation] (if (>= (Integer/parseInt current-date) (Integer/parseInt date-for-validation)) true false)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g