1 use Test::More 'no_plan';
2 use Math::GSL qw/:all/;
3 use Math::GSL::PowInt qw/:all/;
11 ok( gsl_pow_4(2) == gsl_pow_2(4) , q{%EXPORT_TAGS works} );
14 # SWIG takes care of arg checking, but it's still nice to check
15 dies_ok( sub { gsl_pow_2() } , 'Invalid gsl_pow args');
16 dies_ok( sub { gsl_pow_2(1,2) } , 'Invalid gsl_pow args');
17 dies_ok( sub { gsl_pow_2( () ) } , 'Invalid gsl_pow args');
18 dies_ok( sub { gsl_pow_2(qw(1 2)) } ,'Invalid gsl_pow args');
21 ok_similar( [ map { eval $_ } (
37 (3.14) ** 2, 3 ** 2, 0 ** 2, (-1) ** 2, 4 ** 3, 5 ** 4, 6 ** 5, 7 ** 6,
38 8 ** 7, (-4) ** 8, 4 ** 9, q{nan}, q{inf}, 5 ** 10,