Skip to content

Instantly share code, notes, and snippets.

@graue
Created August 19, 2014 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graue/d0ac78ffff3e7b4c4ecc to your computer and use it in GitHub Desktop.
Save graue/d0ac78ffff3e7b4c4ecc to your computer and use it in GitHub Desktop.
// 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