smallcheck-lens

SmallCheck properties for lens https://github.com/jdnavarro/smallcheck-lens

Latest on Hackage:0.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Danny Navarro
Maintained by j@dannynavarro.net

Lens SmallCheck

Hackage Version Build Status

smallcheck properties inspired by lens-properties. They can be used to validate the laws for:

  • Lens
  • Setter
  • Traversal
  • Iso
  • Prism

Use this package to create your own fine tuned tests. For preassembled test runners with minimal setup and sensible defaults, you can use tasty-lens.

Contact

Contributions and bug reports are welcome!

Please feel free to contact jdnavarro on the #haskell IRC channel on irc.freenode.net.

Changes

Change Log

All notable changes to this project will be documented in this file. This file follows the formatting recommendations from Keep a CHANGELOG. This project adheres to Semantic Versioning.

0.3 - 2015-09-11 ### Changed - More sensible function names assuming qualified imports. - Pass functor to use in Traversal as a Proxy instead of hardcoding the functors. - Rank-2 Lens-Like everywhere.

Added

  • Exhaustive property testing using Series product. Previous properties renamed appending Sum.

Removed

  • Main re-export module.
  • Move Tasty modules to a separate package tasty-lens.
  • pureMaybe. Now a Proxy functor is used.

0.1 - 2015-05-27

Added

  • SmallCheck properties for each lens laws.
  • tasty test trees for each Lens type.
  • Tests for some Lens.
comments powered byDisqus