Testing Failure with Either Instead of Exception
Testing the failure cases of code is often as important as testing the successful paths. The Pandoc filter we worked on in the previous episode returns its result, and throws exceptions with formatted strings, in the IO type. This makes testing the failure cases much harder. In this episode we will introduce a function exposing …
Testing Failure with Either Instead of Exception Read More »