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
Literally every single test suite I work on needs these two:
Assertion functions that work in any MonadIO. With this I can use same assertion functions in different test monads, e.g. the monad in hspec-webdriver.
Assertion functions with generalized return value. Something like
x <-case doX ofT1-> assertFailure "doX returned T1!"T2 x ->return x
Since these additions are so small I usually end up copying same code snippets to every single project I work on. I think these would be great additions to HUnit and other people would also benefit it.
The text was updated successfully, but these errors were encountered:
Literally every single test suite I work on needs these two:
Assertion functions that work in any
MonadIO
. With this I can use same assertion functions in different test monads, e.g. the monad inhspec-webdriver
.Assertion functions with generalized return value. Something like
Now I can use this in cases like
Since these additions are so small I usually end up copying same code snippets to every single project I work on. I think these would be great additions to HUnit and other people would also benefit it.
The text was updated successfully, but these errors were encountered: