{-| Module: Spec.Data.ByteStringSpec Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional Portability: GHC @hspec@ tests for data types in the @bytestring@ library. -} module Spec.Data.ByteStringSpec (main, spec) where import qualified Data.ByteString as BS (ByteString) import qualified Data.ByteString.Lazy as BL (ByteString) import Data.ByteString.Short (ShortByteString) import Instances.Data.ByteString () import Spec.Utils (prop_matchesTextShow) import Test.Hspec (Spec, describe, hspec, parallel) import Test.Hspec.QuickCheck (prop) import Test.QuickCheck.Instances () main :: IO () main = hspec spec spec :: Spec spec = parallel $ do describe "strict ByteString" $ prop "TextShow instance" (prop_matchesTextShow :: Int -> BS.ByteString -> Bool) describe "lazy ByteString" $ prop "TextShow instance" (prop_matchesTextShow :: Int -> BL.ByteString -> Bool) describe "ShortByteString" $ prop "TextShow instance" (prop_matchesTextShow :: Int -> ShortByteString -> Bool)