Skip to content

Instantly share code, notes, and snippets.

@garbles
Created March 10, 2017 19:35
Show Gist options
  • Save garbles/44d01b8ac8679255102bd52cf2648274 to your computer and use it in GitHub Desktop.
Save garbles/44d01b8ac8679255102bd52cf2648274 to your computer and use it in GitHub Desktop.
var testcheck = require('testcheck');
var gen = testcheck.gen;
testcheck.check(testcheck.property(
[gen.int, gen.int], // generate two random integers
function (a, b) {
// check that the sum of the integers is always greater than any one number
return a + b >= a && a + b >= b;
}
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment