@@ -8,20 +8,27 @@
9module Streamly.Test.Data.Array.Unboxed (main) where
9module Streamly.Test.Data.Array.Unboxed (main) where
11−#include "Streamly/Test/Data/Array/CommonImports.hs"
13import Data.Char (isLower)
11import Data.Char (isLower)
14import Data.List (sort)
12import Data.List (sort)
15import Data.Word(Word8)
13import Data.Word(Word8)
16import Foreign.Storable (peek)
14import Foreign.Storable (peek)
17−import Streamly.Internal.Data.Unboxed (Unboxed)
18−import Test.QuickCheck (chooseInt, listOf)
19import GHC.Ptr (plusPtr)
15import GHC.Ptr (plusPtr)
16+import Streamly.Data.Fold (Fold)
17+import Streamly.Internal.Data.Stream (Stream)
18+import Streamly.Internal.Data.Unboxed (Unboxed, sizeOf)
19+import Streamly.Test.Common (listEquals)
21+import qualified Streamly.Data.Fold as Fold
21import qualified Streamly.Internal.Data.Array.Unboxed as A
22import qualified Streamly.Internal.Data.Array.Unboxed as A
22import qualified Streamly.Internal.Data.Array.Unboxed.Type as A
23import qualified Streamly.Internal.Data.Array.Unboxed.Type as A
23import qualified Streamly.Internal.Data.Array.Unboxed.Mut.Type as MA
24import qualified Streamly.Internal.Data.Array.Unboxed.Mut.Type as MA
24−import qualified Streamly.Internal.Data.Fold as Fold
25+import qualified Streamly.Internal.Data.Stream as S
27+import Test.Hspec as H
28+import Test.Hspec.QuickCheck
29+import Test.QuickCheck (Property, chooseInt, listOf
30+ , forAll, Gen, vectorOf, arbitrary, choose)
31+import Test.QuickCheck.Monadic (monadicIO, assert, run)
26type Array = A.Array
33type Array = A.Array