hspec-expectations-pretty-diff 0.7.2.2 → 0.7.2.3
raw patch · 3 files changed
+3/−8 lines, 3 filesdep ~HUnitsetup-changed
Dependency ranges changed: HUnit
Files
- Setup.hs +0/−2
- hspec-expectations-pretty-diff.cabal +2/−2
- test/Test/Hspec/Expectations/PrettySpec.hs +1/−4
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
hspec-expectations-pretty-diff.cabal view
@@ -1,5 +1,5 @@ name: hspec-expectations-pretty-diff-version: 0.7.2.2+version: 0.7.2.3 synopsis: Catchy combinators for HUnit description: Catchy combinators for HUnit: <https://github.com/myfreeweb/hspec-expectations-pretty-diff#readme> bug-reports: https://github.com/myfreeweb/hspec-expectations-pretty-diff/issues@@ -40,7 +40,7 @@ build-depends: base >= 4.0.0.0 && < 5 , hspec-expectations-pretty-diff- , HUnit+ , HUnit >= 1.3.0.0 , aeson , text , hspec
test/Test/Hspec/Expectations/PrettySpec.hs view
@@ -1,6 +1,5 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE CPP #-}-{-# LANGUAGE StandaloneDeriving #-} module Test.Hspec.Expectations.PrettySpec (spec) where import Control.Exception@@ -11,10 +10,8 @@ import Test.Hspec.Expectations.Pretty -deriving instance Eq HUnitFailure- expectationFailed :: String -> HUnitFailure -> Bool-expectationFailed msg e = e == HUnitFailure msg+expectationFailed msg (HUnitFailure _ msg') = msg == msg' data TestStructure = TestStructure { name :: String, number :: Int, children :: [TestStructure] } deriving (Show, Eq)