hspec-expectations 0.3.1 → 0.3.2
raw patch · 2 files changed
+7/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Test.Hspec.Expectations: expectationFailure :: String -> Expectation
Files
hspec-expectations.cabal view
@@ -1,5 +1,5 @@ name: hspec-expectations-version: 0.3.1+version: 0.3.2 synopsis: Catchy combinators for HUnit description: Catchy combinators for HUnit: <https://github.com/sol/hspec-expectations#readme> license: MIT
src/Test/Hspec/Expectations.hs view
@@ -4,6 +4,7 @@ -- * Setting expectations Expectation+, expectationFailure , shouldBe , shouldSatisfy , shouldReturn@@ -41,6 +42,10 @@ type Expectation = Assertion +-- | This is just an alias for HUnit's `assertFailure`.+expectationFailure :: String -> Expectation+expectationFailure = assertFailure+ infix 1 `shouldBe`, `shouldSatisfy`, `shouldReturn`, `shouldThrow` -- |@@ -74,7 +79,7 @@ r <- try action case r of Right _ ->- assertFailure $+ expectationFailure $ "did not get expected exception: " ++ exceptionType Left e -> (`assertBool` p e) $