Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Standardizing

  • Loading branch information...
commit 49288cf7dfb519921a0395d328828003192b5511 1 parent 355bf40
@mcandre authored
Showing with 10 additions and 11 deletions.
  1. +7 −6 README.md
  2. +1 −1  package.json
  3. +2 −4 quickcheck.js
View
13 README.md
@@ -2,10 +2,11 @@ quickcheck - Node.js port of the QuickCheck unit test framework
Example
- var qc = require("quickcheck");
-
- function propertyEven(x) { return x % 2 == 0; }
-
- qc.forAll(propertyEven, qc.arbByte);
+ var qc = require("quickcheck");
- *** Failed! 27
+ function propertyEven(x) { return x % 2 == 0; }
+
+ qc.forAll(propertyEven, qc.arbByte);
+
+ *** Failed!
+ 27
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "quickcheck",
"description": "Node.js port of the QuickCheck unit test framework",
- "version": "0.0.1",
+ "version": "0.0.2",
"repository": {
"type": "git",
"url": "git://github.com/mcandre/node-quickcheck.git"
View
6 quickcheck.js
@@ -64,14 +64,12 @@ function forAll(property) {
values = generators.map(fn);
if (!property.apply(null, values)) {
- console.log("*** Failed! " + values);
- return false;
+ console.log("*** Failed!\n" + values);
+ return;
}
}
console.log("+++ OK, passed 100 tests.");
-
- return true;
}
exports.forAll = forAll;
Please sign in to comment.
Something went wrong with that request. Please try again.