Skip to content

Instantly share code, notes, and snippets.

@Anonyfox
Forked from stbaer/tinytest.api
Last active August 29, 2015 14:18
Show Gist options
  • Save Anonyfox/d6eab147d67e96c6eb98 to your computer and use it in GitHub Desktop.
Save Anonyfox/d6eab147d67e96c6eb98 to your computer and use it in GitHub Desktop.
Test API:
test.isFalse(v, msg)
test.isTrue(v, msg)
test.equal(actual, expected, message, not)
test.length(obj, len)
test.include(s, v)
test.isNaN(v, msg)
test.isUndefined(v, msg)
test.isNotNull
test.isNull
test.throws(func)
test.instanceOf(obj, klass)
test.notEqual(actual, expected, message)
test.runId()
test.exception(exception)
test.expect_fail()
test.ok(doc)
test.fail(doc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment