Created
March 10, 2017 19:35
-
-
Save garbles/44d01b8ac8679255102bd52cf2648274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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