chell-quickcheck: QuickCheck support for Chell

[ library, mit, testing ] [ Propose Tags ] [ Report a vulnerability ]

QuickCheck support for the Chell testing library.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.5.1, 0.2.5.2, 0.2.5.3, 0.2.5.4
Change log changelog.md
Dependencies base (>=4.16 && <4.22), chell (>=0.5 && <0.6), QuickCheck (>=2.14.2 && <2.15), random (>=1.2.1 && <1.3) [details]
Tested with ghc ==9.12.0, ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.6, ghc ==9.4.8, ghc ==9.2.8
License MIT
Author John Millikin <john@john-millikin.com>
Maintainer Chris Martin, Julie Moronuki
Revised Revision 1 made by AndreasAbel at 2024-11-13T15:22:52Z
Category Testing
Home page https://github.com/typeclasses/chell
Uploaded by chris_martin at 2023-07-11T21:34:45Z
Distributions Arch:0.2.5.4, NixOS:0.2.5.4, Stackage:0.2.5.4
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 11735 total (57 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-07-11 [all 1 reports]

Readme for chell-quickcheck-0.2.5.4

[back to package description]

QuickCheck support for the Chell testing library.

import Test.Chell
import Test.Chell.QuickCheck

tests :: Suite
tests =
  suite "tests"
      [ test_Equality
      , test_Increment
      ]

test_Equality :: Test
test_Equality = property "equality" (\x -> x == x)

test_Increment :: Test
test_Increment = property "equality" (\x -> x + 1 > x)

main :: IO ()
main = defaultMain [tests]