sdp-quickcheck-0.2: SDP QuickCheck support
Copyright(c) Andrey Mulik 2021
LicenseBSD-style
Maintainerwork.a.mulik@gmail.com
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.SDP.Split

Description

Test.SDP.Split is service module that provides Split tests.

Synopsis

Split test

type TestSplit s = Int -> s -> Bool Source #

TestSplit is service type synonym for more comfortable quickCheck using.

type TestSplit1 s e = Int -> s e -> Bool Source #

TestSplit1 is service type synonym for more comfortable quickCheck using.

type TestSplit2 s i e = Int -> s i e -> Bool Source #

TestSplit2 is service type synonym for more comfortable quickCheck using.

splitTest :: (Split s e, Eq e, Eq s, Bordered s i) => (e -> Bool) -> TestSplit s Source #

splitTest f n xs is default Split test, where f is arbitrary predicate (e.g. "Test.SDP.Gen.orderA").

Particular tests

basicSplitTest :: (Split s e, Eq e, Eq s, Bordered s i) => TestSplit s Source #

basicSplitTest checks take, drop, sans, keep, split and divide correctness and relations.

whileSplitTest :: (Split s e, Eq e, Eq s, Bordered s i) => (e -> Bool) -> s -> Bool Source #

whileSplitTest checks takeWhile, dropWhile, takeEnd, dropEnd, spanl, spanr, breakl and breakr correctness and relations.