Test::C2FIT::PrimitiveFixture
Normally, you subclass PrimitiveFixture.
sub doCell { my $self = shift; my($cell, $column) = @_; if ( $column == 0 ) { $self->{'x'} = int($cell->text()); } elsif ( $column == 2 ) { $self->checkValue($cell, $self->{'x'} * $self->{'x'}; } }
PrimitiveFixture offers a checkValue method. Binding of columns to values is the programmer's job with this fixture.
checkValue
Checks if the given cell contains something which equals to value. If so, the cell gets annotated as "right", else as "wrong".
Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/
To install Test::C2FIT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::C2FIT
CPAN shell
perl -MCPAN -e shell install Test::C2FIT
For more information on module installation, please visit the detailed CPAN module installation guide.