The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Language::Befunge::IP::lib::TEST - a Befunge extension to run tests

SYNOPSIS

    P - plan
    O - ok
    I - is

DESCRIPTION

This extension provide a way for Befunge test programs to easily produce valid TAP output.

FUNCTIONS

new

Create a new TEST instance.

P

Pops a number off the TOSS, and use it for the plan.

If the number is zero, then the number of tests run is listed at the end of the test script (i.e. no_plan).

O

Pop a value and a message off the TOSS.

If the value is zero, outputs a not ok, otherwise a ok.

I

Pop two values and a message off the TOSS.

If the two values are equel, the test passes, otherwise it fails.

SEE ALSO

Language::Befunge.

AUTHOR

Philippe Bruhat (BooK) - <book@cpan.org>.

COPYRIGHT

Copyright 2008 Philippe Bruhat (BooK), All Rights Reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.