| parrotcode: Parrot Test | |
| Contents | Perl Modules |

Parrot::Test - Parrot Test

Set the number of tests to be run like this:
use Parrot::Test tests => 8;
Write individual tests like this:
output_is(<<'CODE', <<'OUTPUT', "description of test");
...
CODE
...
OUTPUT

This module provides various Parrot-specific test functions.

In the following functions $description should describe the test.
output_is($code, $expected, $description)output_like($code, $expected, $description)output_isnt($code, $expected, $description)pir_output_is($code, $expected, $description)pir_output_like($code, $expected, $description)pir_output_isnt($code, $expected, $description)c_output_is($code, $expected, $description)c_output_like($code, $expected, $description)c_output_isnt($code, $expected, $description)skip($why, $how_many)SKIP: { ... } block to indicate why and how many test are being skipped.
|
|
|