Testing our app using the 3rd party class
use strict;
use warnings;
use Test::More;
use MySalary;
my $obj = MySalary->new("Gabor");
is $obj->get_name(), "Gabor";
is $obj->get_salary(), 1470;
done_testing;
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
use strict;
use warnings;
use Test::More;
use MySalary;
my $obj = MySalary->new("Gabor");
is $obj->get_name(), "Gabor";
is $obj->get_salary(), 1470;
done_testing;