exercism / clojure

Exercism exercises in Clojure.

Home Page:https://exercism.org/tracks/clojure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot see if the other tests are failing or that there is a error message

opened this issue · comments

Hello,

I try to solve Sublist this way :

(defn classify [list1 list2]
  (cond (= list1 list2) :equal
            (clojure.set/subset? list1 list2) :sublist
            (clojure.set/subset? list2 list1) :superlist))

I see now only that 1 test is green but cannot submit and still cannot see why

I see what's happening here... there is actually only one test containing many assertions. If any of those assertions fail, the test fails, but since they are all associated with the same name, only the first one is reported.

To solve this, I probably need to rethink the way that the test data is gathered, so that each assertion will be bound to its own name.