Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Test::Simple when everything is ok

For the following example we've replaced the failing test with one that is successful. This way you can see how does it look like when everything is ok.

use strict;
use warnings;

use FindBin;
use lib "$FindBin::Bin/../lib";
use MySimpleCalc qw(sum);

use Test::Simple tests => 3;

ok( sum(1, 1) == 2 );
ok( sum(2, 2) == 4 );
ok( sum(3, 3) == 6 );

Output:

1..3
ok 1
ok 2
ok 3
$ echo $?
0
> echo %ERRORLEVEL%
0