Test::Proto::Compare::Numeric - numeric comparison
my $c = Test::Proto::Compare::Numeric; $c->compare($left, $right); # $left <=> $right $c->reverse->compare($left, $right); # $right <=> $left
This class provides a wrapper for comparison functions so they can be identified by formatters. Except as described below, identical to Test::Proto::Compare.
Chainable attribute containing the code, which by default is a numeric comparison.
Chainable attribute; a brief human-readable description of the operation which will be performed. Default is '<=>'.
To install Test::Proto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Proto
CPAN shell
perl -MCPAN -e shell install Test::Proto
For more information on module installation, please visit the detailed CPAN module installation guide.