Skip to content

Instantly share code, notes, and snippets.

@graue graue/gtboom.js
Created Aug 19, 2014

Embed
What would you like to do?
// 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
You can’t perform that action at this time.