Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zoolu-got-rhythm/aff98ba510f573f5bd3e3546cb1e9e42 to your computer and use it in GitHub Desktop.
Save zoolu-got-rhythm/aff98ba510f573f5bd3e3546cb1e9e42 to your computer and use it in GitHub Desktop.
QUnit.test( "hello test", function( assert ) {
assert.ok( 1 == "1", "Passed!" );
});
QUnit.test( "truthy", function( assert ) {
assert.ok( "" == 0, "Passed!" );
});
// 50/50 test
QUnit.test( "dice", function( assert ) {
for(var i = 0; i <= 10; i++)
assert.ok( Math.round(Math.random() * 1) <= 1, "Passed!" );
});
QUnit.test( "thumb print trace", function( assert ) {
// should be 30?
assert.equal(thumbPrint.getTrace().length === 32, true );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment