Skip to content

Instantly share code, notes, and snippets.

@Anonyfox
Forked from stbaer/tinytest.api
Last active August 29, 2015 14:18

Revisions

  1. @stbaer stbaer revised this gist Dec 29, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion tinytest.api
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    Test API:
    test.isFalse(v, msg)
    test.isTrue(v, msg)
    test.equal(actual, expected, message, not)
  2. @stbaer stbaer created this gist Dec 29, 2013.
    18 changes: 18 additions & 0 deletions tinytest.api
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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)