Wednesday, 4 February 2015

3: Adding comments/test name with tests

Note: Using PERL Module- fib.pm from post 1

Test Program(t.pl):
use strict;
use warnings;

use Test::Simple tests => 3;

use fib;

ok( fib(1) == 1 ,'1 is fib');
ok( fib(4) == 0 ,'4 is not fib');
ok( fib(8) == 1 ,'8 is fib');

Output of t.pl



No comments:

Post a Comment