Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fredrik Wieczerkowski
curry-libs
Commits
2accfa5b
Commit
2accfa5b
authored
Dec 04, 2017
by
Michael Hanus
Browse files
Test.Prop.forAll added
parent
2a9bf2ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Test/Prop.curry
View file @
2accfa5b
...
...
@@ -26,7 +26,7 @@ module Test.Prop (
-- test specification:
PropIO, returns, sameReturns, toError, toIOError,
Prop, (==>), for,
Prop, (==>), for,
forAll,
is, isAlways, isEventually, uniquely, always, eventually,
failing, successful, deterministic, (-=-), (<~>), (~>), (<~), (<~~>),
...
...
@@ -169,6 +169,11 @@ _ #> _ = propUndefinedError "#>"
for :: Show a => a -> (a -> Prop) -> Prop
for _ _ = propUndefinedError "for"
--- The property `forAll xs p` is satisfied if all values `x` of the list `xs`
--- satisfy property `p x`.
forAll :: Show a => [a] -> (a -> Prop) -> Prop
forAll _ _ = propUndefinedError "forAll"
-------------------------------------------------------------------------
-- Test Annotations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment