The quickspec package

[Tags: bsd3, library]

QuickSpec automatically finds equational properties of 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:

 xs++[] == xs
 []++xs == xs
 reverse [] == []
 (xs++ys)++zs == xs++(ys++zs)
 reverse (reverse xs) == xs
 reverse xs++reverse ys == reverse (ys++xs)

All you have to provide is:

Consider this a pre-release. Everything is complete but undocumented :) The best place to start is the examples at http://github.com/nick8325/quickspec/tree/master/examples. There is also a paper at http://www.cse.chalmers.se/~nicsma/quickspec.pdf. Everything you need should be in the module Test.QuickSpec.

If you want help, email me!


Properties

Versions0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6
Dependenciesarray, base (<5), containers, ghc-prim, mtl, QuickCheck, random, spoon (>=0.2), transformers
LicenseBSD3
Copyright2009-2013 Nick Smallbone
AuthorNick Smallbone
Maintainernicsma@chalmers.se
CategoryTesting
Home pagehttps://github.com/nick8325/quickspec
Source repositoryhead: git clone git://github.com/nick8325/quickspec.git -b master
Upload dateWed Mar 13 16:00:24 UTC 2013
Uploaded byNickSmallbone
Downloads662 total (79 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees