{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE QuasiQuotes #-}{-# OPTIONS_GHC -fno-warn-missing-signatures #-}module CheckBytesBehaviour whereimport qualified Data.ByteString.Char8 as Cimport Test.Hspecimport Core.Text.Bytesimport Core.Text.Utilities (byteChunk)checkBytesBehaviour :: SpeccheckBytesBehaviour = do describe "Bytes data type" $ do it "chunks Bytes in 64 bit words" $ let expected = [ C.pack "Hello Wo" , C.pack "rld! Goo" , C.pack "d Bye." ] in do byteChunk (C.pack "Hello World! Good Bye.") `shouldBe` expected