1 use Test::More 'no_plan';
11 my ($x,$h,$result,$abserr)=(5,0.01,0,0);
12 my $x_squared = sub {my $x=shift; $x ** 2};
14 for my $f (qw/central backward forward/) {
16 Math::GSL::_assert_dies(
17 sub { Math::GSL::Deriv::gsl_deriv_$f ( $x_squared, $x, $h, $result, $abserr) } );