The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Proto::Compare::Numeric - numeric comparison

SYNOPSIS

        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.

METHODS

code

Chainable attribute containing the code, which by default is a numeric comparison.

summary

Chainable attribute; a brief human-readable description of the operation which will be performed. Default is '<=>'.