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

use warnings;
use strict;

use Test::More tests => 1;

use lib 'lib';
use Math::Function::Roots qw(find epsilon);

epsilon(0);
is( find( sub{ -1*shift() + 2 } ), 2, "find: exact result");

# write other tests giving range.