Debian Codegraph @

/

debian libtest-deep-fuzzy-perl 0.01-3debian libtest-deep-fuzzy-perl cpan Test-Deep-Fuzzy 0.01 debianjsonmakefilemarkdownperlshelltomlyaml 16 files · 75 symbols
View dependency graph

Depends on

README (full)

Build Status Coverage Status

NAME

Test::Deep::Fuzzy - fuzzy number comparison with Test::Deep

SYNOPSIS

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');

DESCRIPTION

Test::Deep::Fuzzy provides fuzzy number comparison with Test::Deep.

FUNCTIONS

  • is_fuzzy_num EXPECTED, RANGE

    Rounds the values before comparing the values. The RANGE is used for Math::Round::nearest() to compare the values.

SEE ALSO

Math::Round Test::Deep Test::Number::Delta

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura [email protected]

dir debian/
dir lib/
dir t/
file Build.PL
file Changes
file LICENSE
file MANIFEST
file META.json
file META.yml
file README.md
file cpanfile
file minil.toml