HUnit icon indicating copy to clipboard operation
HUnit copied to clipboard

A unit testing framework for Haskell

Results 6 HUnit issues
Sort by recently updated
recently updated
newest added

The `Exception HUnitFailure` instance does not currently implement `displayException`. It would be nice if it did, and if `performTestCase` called `displayException` rather than `show` when rendering an exception. Related `tasty`...

(e.g. 2.2 from https://github.com/hspec/hspec-expectations/issues/32#issuecomment-720153521)

I recently found myself writing a function to check that filepaths are equal: ``` assertEqualPath got expected = do got'

``` src/Test/HUnit/Terminal.hs:41:41: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace...

Fixing a use of `tail` in the library. In the test-suite, `tail []` is intended, so switch off the `x-partial` there. Ignoring `-Wx-partial` on older GHCs requires `-Wno-unrecognised-warning-flags`, which entered...