Created
August 19, 2014 01:52
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
// Fine with 100 tests — not so good with `gentest -n 1000 gtboom.js` | |
// (as of gentest 0.1.1) | |
// | |
// Adapted from Jamie Brandon's double-check example: | |
// https://github.com/jamii/dcboom/blob/master/src/dcboom/core.cljs | |
var t = gentest.types; | |
forAll([t.arrayOf(t.arrayOf(t.string))], | |
'simulate sparse/complex failure', | |
function(_) { | |
return Math.random() < 0.999; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment