sdp-quickcheck-0.2: SDP QuickCheck support
Copyright(c) Andrey Mulik 2019
LicenseBSD-style
Maintainerwork.a.mulik@gmail.com
Portabilitynon-portable (requires non-portable modules)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.SDP.Indexed

Description

Test.SDP.Indexed provides simple set of test for Indexed class.

Synopsis

Indexed test

type TestIndexed l i = i -> l -> Bool Source #

TestIndexed is service type synonym for more comfortable quickCheck using.

type TestIndexed1 l i e = i -> l e -> Bool Source #

TestIndexed1 is service type synonym for more comfortable quickCheck using.

type TestIndexed2 l i e = i -> l i e -> Bool Source #

TestIndexed2 is service type synonym for more comfortable quickCheck using.

indexedTest :: (Bordered l i, Indexed l i e, Eq e, Eq l) => i -> l -> Bool Source #

indexedTest is complex test, that includes all other tests.

Particular tests

basicIndexedTest :: (Bordered l i, Indexed l i e) => i -> l -> Bool Source #

basicIndexedTest checks relations of isNull, safeElem and inRange.

assocIndexedTest :: (Bordered l i, Indexed l i e, Eq e, Eq l) => i -> l -> Bool Source #

assocIndexedTest checks relations of assoc, assocs, (.$), (*$) and (//).

readIndexedTest :: (Bordered l i, Indexed l i e, Eq e) => i -> l -> Bool Source #

readIndexedTest checks relations of listL, (.!), (!) and (!?).