for-all
A simple forAll implementation in node.js. Based on node-quickcheck.
This module has not been published yet on npm, though it should be ready for use.
Installing
Install with npm install for-all
.
Usage
var forAll = ;var chance = new ;var { return x + 1; } ;
forAll(fn, property generators)
Checks if a property stands against a number of value generators through 100 iterations.
Params:
- Function fn The function to test.
- Function property A property to test over generated values.
- Array. [generators] Value generators, to be fed in order into
License
Copyright (c) 2014 Pedro Tacla Yamada. Licensed under the MIT license. Please refer to the LICENSE file for more info.