{-|
Module: Spec.Data.BinarySpec
Copyright: (C) 2014-2015 Ryan Scott
License: BSD-style (see the file LICENSE)
Maintainer: Ryan Scott
Stability: Experimental
Portability: GHC
@hspec@ tests for 'Decoder's.
-}
module Spec.Data.BinarySpec (main, spec) where
import Data.Binary.Get.Internal (Decoder)
import Instances.Data.Binary ()
import Spec.Utils (prop_matchesShow)
import Test.Hspec (Spec, describe, hspec, parallel)
import Test.Hspec.QuickCheck (prop)
import Text.Show.Text.Data.Binary ()
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel . describe "Text.Show.Text.Data.Binary" $
prop "Decoder Int instance" (prop_matchesShow :: Int -> Decoder Int -> Bool)