Package

purescript-spec-quickcheck

Repository
purescript-spec/purescript-spec-quickcheck
License
MIT
Uploaded by
pacchettibotti
Published on
2022-05-02T14:05:51Z

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

Usage

bower install purescript-spec-quickcheck
module Test.Main where

import Prelude
import Effect (Effect)
import Test.QuickCheck ((===), (/==))
import Test.Spec (describe, it)
import Test.Spec.QuickCheck (quickCheck)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (run)

main :: Effect Unit
main = run [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. For the full documentation on Purescript Spec, see The Guide.

Contribute

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

License

MIT License.

Modules
Test.Spec.QuickCheck
Dependencies