Skip to content

Repository files navigation

purescript-spec-quickcheck

purescript-spec-quickcheck is a tiny adapter between the purescript-spec test framework and purescript-quickcheck.

Usage

bower install purescript-spec-quickcheck
moduleTest.MainwhereimportPreludeimportEffect (Effect)
importTest.QuickCheck ((===), (/==))
importTest.Spec (describe, it)
importTest.Spec.QuickCheck (quickCheck)
importTest.Spec.Reporter.Console (consoleReporter)
importTest.Spec.Runner (runSpec)
main::EffectUnit
main = runSpec [consoleReporter] do
describe "Math"do
it "works" $
quickCheck \n -> (n * 2 / 2) === n
it "works again" $
quickCheck \n -> ((n + 1) * 2) /== n

API Docs

This module is published, and has its API documentation, on Pursuit.

Contribute

If you have any issues or possible improvements please file them as GitHub Issues. Pull requests are encouraged.

License

MIT License.

About

Adapter between purescript-spec and purescript-quickcheck

Resources

Stars

13 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages