Skip to content

Instantly share code, notes, and snippets.

@nanodeath
Created August 31, 2010 02:57
Show Gist options
  • Save nanodeath/558463 to your computer and use it in GitHub Desktop.
Save nanodeath/558463 to your computer and use it in GitHub Desktop.
var tests = ...;
for(var i = 0; i < tests.length; i++){
var generateTest = function(test){
return function(){
ok(test.valid);
// etc...
}
}
test("test: " + i, generateTest(tests[i]));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment