Test::Deep::Fuzzy3pm
Fuzzy number comparison with test::deep
Usage
use Test::Deep;use Test::Deep::Fuzzy;my $range = 0.001;cmp_deeply({number => 0.0078125,}, {number => is_fuzzy_num(0.008, $range),}, 'number is collect');
Overview
Test::Deep::Fuzzy provides fuzzy number comparison with Test::Deep.
Functions
is_fuzzy_numEXPECTED, RANGE-
Rounds the values before comparing the values. The RANGE is used for
"Math::Round::nearest()"to compare the values.
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.