Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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

See Also