The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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

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 karupa@cpan.org