hspec-expectations 0.3.0.3 → 0.3.1
raw patch · 3 files changed
+6/−6 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- LICENSE +1/−1
- hspec-expectations.cabal +3/−3
- src/Test/Hspec/Expectations.hs +2/−2
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2011, 2012 Simon Hengel <sol@typeful.net>+Copyright (c) 2011-2013 Simon Hengel <sol@typeful.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
hspec-expectations.cabal view
@@ -1,10 +1,10 @@ name: hspec-expectations-version: 0.3.0.3+version: 0.3.1 synopsis: Catchy combinators for HUnit description: Catchy combinators for HUnit: <https://github.com/sol/hspec-expectations#readme> license: MIT license-file: LICENSE-copyright: (c) 2011, 2012 Simon Hengel+copyright: (c) 2011-2013 Simon Hengel author: Simon Hengel <sol@typeful.net> maintainer: Simon Hengel <sol@typeful.net> build-type: Simple@@ -20,7 +20,7 @@ ghc-options: -Wall build-depends:- base < 4.7+ base < 4.8 , HUnit hs-source-dirs: src
src/Test/Hspec/Expectations.hs view
@@ -35,7 +35,7 @@ ) where import Prelude-import Test.HUnit+import Test.HUnit (Assertion, (@?=), assertBool, assertFailure) import Control.Exception import Data.Typeable @@ -52,7 +52,7 @@ -- | -- @v \`shouldSatisfy\` p@ sets the expectation that @p v@ is @True@. shouldSatisfy :: (Show a) => a -> (a -> Bool) -> Expectation-v `shouldSatisfy` p = assertBool (show v ++ " did not satisfy predicate!") (p v)+v `shouldSatisfy` p = assertBool ("predicate failed on: " ++ show v) (p v) -- | -- @action \`shouldReturn\` expected@ sets the expectation that @action@