Test.ok
$t.ok($assertion, $description) -> self
Description
If assertion
evaluates to true
, the test passes. Otherwise it fails.
$t = Test() $t.ok('abc'.reverse() == 'cba', 'reverse string') //= (OK) reverse string
If assertion
evaluates to true
, the test passes. Otherwise it fails.
$t = Test() $t.ok('abc'.reverse() == 'cba', 'reverse string') //= (OK) reverse string