Skip to content

Instantly share code, notes, and snippets.

@aristidb
Created December 5, 2008 20:12
Show Gist options
  • Save aristidb/32491 to your computer and use it in GitHub Desktop.
Save aristidb/32491 to your computer and use it in GitHub Desktop.
suite_name = 'The big test suite'
test_foo = function() {
expect(2);
ok(1, "Check ok");
same([1,2],[3,2], "Arrays are the same");
}
/*
[execute in scope (new TestSuite)]
Output will be something like:
test_foo:
1..2
1 ok - Check ok
2 not ok - Arrays are the same
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment