@hackage chell-quickcheck0.2.5.4
QuickCheck support for Chell
Installation
Tested Compilers
Dependencies (4)
- QuickCheck ^>=2.14.2
- base ^>=4.16 || ^>=4.17 || ^>=4.18 || ^>=4.19 || ^>=4.20 || ^>=4.21
- chell ^>=0.5
- random ^>=1.2.1 || ^>=1.3.0 Show all…
Dependents (5)
@hackage/dbus, @hackage/acme-everything, @hackage/options, @hackage/gnuidn, @hackage/system-filepath
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]