packages feed

tasty-hunit-compat 0.1.0 → 0.2

raw patch · 2 files changed

+16/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Test.Tasty.HUnit: (@=?) :: (HasCallStack, Eq a, Show a) => a -> a -> Assertion
+ Test.Tasty.HUnit: (@?) :: (HasCallStack, AssertionPredicable t) => t -> String -> Assertion
+ Test.Tasty.HUnit: (@?=) :: (HasCallStack, Eq a, Show a) => a -> a -> Assertion
+ Test.Tasty.HUnit: assertBool :: HasCallStack -> String -> Bool -> Assertion
+ Test.Tasty.HUnit: assertEqual :: (HasCallStack, Eq a, Show a) => String -> a -> a -> Assertion
+ Test.Tasty.HUnit: assertFailure :: HasCallStack => String -> IO a
+ Test.Tasty.HUnit: assertionPredicate :: AssertionPredicable t => t -> AssertionPredicate
+ Test.Tasty.HUnit: class AssertionPredicable t
+ Test.Tasty.HUnit: data HUnitFailure
+ Test.Tasty.HUnit: infix 1 @?
+ Test.Tasty.HUnit: type Assertion = IO ()
+ Test.Tasty.HUnit: type HasCallStack = ?callStack :: CallStack

Files

src/Test/Tasty/HUnit.hs view
@@ -12,10 +12,24 @@   ( testCase   , testCaseInfo   , testCaseSteps++    -- * Re-exports+  , HUnit.assertFailure+  , HUnit.assertBool+  , HUnit.assertEqual+  , (HUnit.@=?)+  , (HUnit.@?=)+  , (HUnit.@?)+  , HUnit.AssertionPredicable(..)+  , HUnit.Assertion+  , HUnit.HUnitFailure+  , HasCallStack   ) where  import Control.Exception (handle, throwIO)+import GHC.Stack (HasCallStack) import Test.HUnit (Assertion)+import qualified Test.HUnit as HUnit import qualified Test.HUnit.Lang as HUnit import Test.Tasty (TestName, TestTree) import qualified "tasty-hunit" Test.Tasty.HUnit as Tasty.HUnit
tasty-hunit-compat.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 5c757f2a2b2876d772e5640df8a0c3261c2ef99d8f3bcf353c05f1869be77b06+-- hash: e814110509f9641ef0e91cc1f121c0428adcc5c93eaddee5f5bf03d278632e03  name:           tasty-hunit-compat-version:        0.1.0+version:        0.2 synopsis:       Tasty integration with the existing HUnit package. description:    Existing `tasty-hunit` package now declares its own testing primitives. This package provides an integration of the existing HUnit package with Tasty that inter-operates properly with other HUnit code. category:       Testing