Fork me on GitHub
#testing
<
2019-04-29
>
tianshu21:04:55

anyone have an idea to naming the test case in clojure.test/are? if I have

(t/are [a b c]
  (= c (f a b))
  1 1 0
  1 0 1))
no matter which case failed, will get the same information.

tianshu21:04:11

what I can do is

(t/are [desc a b c]
  (= [desc c] [desc (f a b)])
  "case 1" 1 1 0
  "case 2" 1 0 1))
I don't think this is a good idea though.