1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
{-# LANGUAGE ConstraintKinds #-}
module Tests.Vector.Boxed (tests) where
import Test.Tasty
import qualified Data.Vector
import Tests.Vector.Property
import GHC.Exts (inline)
testGeneralBoxedVector
:: forall a. (CommonContext a Data.Vector.Vector, Ord a, Data a)
=> Data.Vector.Vector a -> [TestTree]
testGeneralBoxedVector dummy = concatMap ($ dummy)
[
testSanity
, inline testPolymorphicFunctions
, testOrdFunctions
, testTuplyFunctions
, testNestedVectorFunctions
, testMonoidFunctions
, testFunctorFunctions
, testMonadFunctions
, testApplicativeFunctions
, testAlternativeFunctions
, testSequenceFunctions
, testDataFunctions
]
testBoolBoxedVector dummy = concatMap ($ dummy)
[
testGeneralBoxedVector
, testBoolFunctions
]
testNumericBoxedVector
:: forall a. (CommonContext a Data.Vector.Vector, Ord a, Num a, Enum a, Random a, Data a)
=> Data.Vector.Vector a -> [TestTree]
testNumericBoxedVector dummy = concatMap ($ dummy)
[
testGeneralBoxedVector
, testNumFunctions
, testEnumFunctions
]
tests =
[ testGroup "Bool" $
testBoolBoxedVector (undefined :: Data.Vector.Vector Bool)
, testGroup "Int" $
testNumericBoxedVector (undefined :: Data.Vector.Vector Int)
, testGroup "unstream" $ testUnstream (undefined :: Data.Vector.Vector Int)
]
|