Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

schneiderfelipe/quickcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: this project has been retired. For a Rust-based alternative, see BurntSushi/quickcheck.

quickcheck

Property-based, type-based testing for Nim.

import unittest, quickcheck, algorithm

test "some invariants of the `reversed` function":
  check satisfy do (xs: string) -> bool:
    xs.reversed.reversed == xs

  check satisfy do (xs, ys: string) -> bool:
    (xs & ys).reversed == ys.reversed & xs.reversed
  +++ OK, passed 100 quick checks.
  +++ OK, passed 100 quick checks.
[OK] some invariants of the `reversed` function

It works with unittest, as a standalone library (and probably with testament) and is inspired by QuickCheck and SmallCheck (see below).

Inspiring projects

References

Releases

No releases published

Packages

No packages published

Languages