Skip to content

Commit

Permalink
persistent-template: Use Hspec's shouldBe instead of HUnit`s @?=
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Sep 15, 2012
1 parent 42bf91e commit 7a190b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion persistent-template/persistent-template.cabal
Expand Up @@ -39,7 +39,6 @@ test-suite test
, text
, persistent
, bytestring
, HUnit
, QuickCheck

source-repository head
Expand Down
3 changes: 1 addition & 2 deletions persistent-template/test/main.hs
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE EmptyDataDecls #-}
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.HUnit
import Data.ByteString.Lazy.Char8 ()
import Test.QuickCheck.Arbitrary
import Control.Applicative ((<$>), (<*>))
Expand Down Expand Up @@ -47,5 +46,5 @@ main = hspec $ do
prop "to/from is idempotent" $ \person ->
decode (encode person) == Just (person :: Person)
it "decode" $
decode "{\"name\":\"Michael\",\"age\":27,\"address\":{\"street\":\"Narkis\",\"city\":\"Maalot\"}}" @?= Just
decode "{\"name\":\"Michael\",\"age\":27,\"address\":{\"street\":\"Narkis\",\"city\":\"Maalot\"}}" `shouldBe` Just
(Person "Michael" (Just 27) $ Address "Narkis" "Maalot" Nothing)

0 comments on commit 7a190b0

Please sign in to comment.