Alex Rivera | Logout

Is there an assertException in any of the Haskell test frameworks?

Asked 2011-05-27T03:06:41.413
15

I'm writing some tests using HUnit and I would like to assert that a particular function throws an exception given a certain input. I can't find an assert function which provides the required functionality. Anyone know of a test framework that does?

Edit
Report

1 Answer

5

You can use assertRaises from testpack.

answered 2012-03-08T00:50:44.150

Your Answer