You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be controversial, but I thought I'd throw it out there: I think that when reading the expected result, the form should be automatically quoted. E.g.
Uncaught exception, not in assertion.
expected: nil
actual: java.lang.ClassCastException: class java.lang.Long cannot be cast to class clojure.lang.IFn (java.lang.Long is in module java.base of loader 'bootstrap'; clojure.lang.IFn is in unnamed module of loader 'app')
Because when we emit the test code, it evaluates the result form as an expression.
My suggested change is to treat the result form as data, so that the above test would pass.
The text was updated successfully, but these errors were encountered:
But I don't that that is a particularly natural use of a comment anyway, and if anyone wants to do it they can just (+ 5 5) ;=>> expected, making more explicit that it's not an assertion of literal equality.
This might be controversial, but I thought I'd throw it out there: I think that when reading the expected result, the form should be automatically quoted. E.g.
Today, this would throw with the error
Because when we emit the test code, it evaluates the result form as an expression.
My suggested change is to treat the result form as data, so that the above test would pass.
The text was updated successfully, but these errors were encountered: