Skip to content

Instantly share code, notes, and snippets.

@2shortplanks
Created September 15, 2014 16:33
Show Gist options
  • Select an option

  • Save 2shortplanks/ee04000860db30ec6222 to your computer and use it in GitHub Desktop.

Select an option

Save 2shortplanks/ee04000860db30ec6222 to your computer and use it in GitHub Desktop.
try {
assert.deepEqual(record,result);
success = true;
} catch (e) {}
if (success) {
console.log("ok "+i);
} else {
console.log("not ok "+i);
console.log("# got: ");
console.log("# "+JSON.stringify(result));
console.log("# not: ");
console.log("# "+JSON.stringify(record));
process.exit(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment