use Test::More tests => 4; BEGIN { use_ok('Mytest') } ok( Mytest::is_even(0) == 1 ); ok( Mytest::is_even(1) == 0 ); ok( Mytest::is_even(2) == 1 );