quickspec: Equational laws for free!
QuickSpec automatically finds equational laws about your program.
Give it an API, i.e. a collection of functions, and it will spit out
equations about those functions. For example, given reverse
, ++
and []
, QuickSpec finds six laws, which are exactly the ones you
might write by hand:
xs++[] == xs []++xs == xs (xs++ys)++zs == xs++(ys++zs) reverse [] == [] reverse (reverse xs) == xs reverse xs++reverse ys == reverse (ys++xs)
The laws that QuickSpec generates are not proved correct, but have passed at least 200 QuickCheck tests.
For more information, see the README
file at
https:/github.comnick8325quickspecblobmasterREADME.asciidoc.
Modules
[Index]
Downloads
- quickspec-0.9.6.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 2, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.2 |
---|---|
Dependencies | array, base (<5), containers, ghc-prim, QuickCheck (>=2.7), random, spoon (>=0.2), transformers [details] |
License | BSD-3-Clause |
Copyright | 2009-2013 Nick Smallbone |
Author | Nick Smallbone |
Maintainer | nicsma@chalmers.se |
Category | Testing |
Home page | https://github.com/nick8325/quickspec |
Source repo | head: git clone git://github.com/nick8325/quickspec.git -b master |
Uploaded | by NickSmallbone at 2014-08-26T11:35:30Z |
Distributions | NixOS:2.2 |
Reverse Dependencies | 3 direct, 0 indirect [details] |
Downloads | 9877 total (5 in the last 30 days) |
Rating | 2.0 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |