Help for this page

Select Code to Download


  1. or download this
    use Test::More tests => 4;
    BEGIN {use_ok('Mytest')}
    ...
    print &Mytest::is_even(0) == 1 ? "ok 2" : "not ok 2", "\n";
    print &Mytest::is_even(1) == 0 ? "ok 3" : "not ok 3", "\n";
    print &Mytest::is_even(2) == 1 ? "ok 4" : "not ok 4", "\n";