Test
Functions for writing unit tests.
$t = Test() $t.ok(1 == 1, '1 equals 1') $t.ok(2 + 2 == 5, '2 + 2 equals 4') Web.print($t.resultsHtml()) //= { numPassed: 1, numFailed: 1 }
Functions for writing unit tests.
$t = Test() $t.ok(1 == 1, '1 equals 1') $t.ok(2 + 2 == 5, '2 + 2 equals 4') Web.print($t.resultsHtml()) //= { numPassed: 1, numFailed: 1 }