massiv-test-0.1.3: Library that contains generators, properties and tests for Massiv Array Library.

Safe HaskellNone
LanguageHaskell2010

Test.Massiv.Array.Delayed

Contents

Synopsis

Spec for safe Mutable instance

Useful properties for testing toList conversion

prop_toStream :: forall r ix e. (Source r ix e, Stream r ix e, Show e, Eq e) => Array r ix e -> Property Source #

Compare toStream and toList

prop_toStreamIsList :: forall r e. (Item (Array r Ix1 e) ~ e, IsList (Array r Ix1 e), Stream r Ix1 e, Show e, Eq e) => Array r Ix1 e -> Property Source #

Compare toStream and toList

prop_toStreamFoldable :: forall r ix e. (Foldable (Array r ix), Stream r ix e, Show e, Eq e) => Array r ix e -> Property Source #

Compare toStream and toList

prop_sfilter :: forall r ix e. (Eq e, Show e, Stream r ix e, Foldable (Array r ix)) => Array r ix e -> Fun e Bool -> Property Source #

prop_smapMaybe :: forall r ix e a. (Eq a, Show a, Stream r ix e, Foldable (Array r ix)) => Array r ix e -> Fun e (Maybe a) -> Property Source #

prop_takeDrop :: forall r e. (Eq e, Show e, Source r Ix1 e, Foldable (Array r Ix1)) => Vector r e -> Int -> Int -> Property Source #

prop_sunfoldr :: forall e s. (Eq e, Show e) => Fun s (Maybe (e, s)) -> s -> NonNegative Int -> Property Source #