Prev Testing and Code Coverage Next

Data Coverage

        my $input = int shift;
        my @squares = (0, 1, 5, 9);
        if ($input < 4 && $input > -4)
        {
            print $squares[abs $input];
        }

continued...


Slide 60 YAPC::Europe::2002 Copyright © 2002 Paul Johnson