definition: |
classify :: Bool -> String -> Prop -> Prop classify True name = label name classify False _ = id |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
Assign a label to a property if the first argument is `True`. All labeled tests are counted and shown at the end. Hence, this combinator can be used to classify tests: multIsComm x y = classify (x<0 || y<0) "Negative" $ x*y -=- y*x |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({True},_) |-> {label} || ({False},_) |-> {id}} |
name: |
classify |
precedence: |
no precedence defined |
result-values: |
{id,label} |
signature: |
Prelude.Bool -> String -> Test.Prop.Types.Prop -> Test.Prop.Types.Prop |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |