Cleaned up Build.PL to get rid of settings particular to my machine.
[Math-GSL.git] / t / Complex.t
blob4167163cb95c20e7d123f926b1e8d9787bccacf0
1 use Test::More 'no_plan';
2 use Math::GSL;
3 use Math::GSL::Complex;
4 use Data::Dumper;
5 use strict;
6 use warnings;
8 # gsl_complex gsl_complex_polar (double r, double theta)
11     my $x =Math::GSL::Complex::gsl_complex->new;
12     ok( defined $x && $x->isa('Math::GSL::Complex'), 'gsl_complex' );
15     my $x =Math::GSL::Complex::gsl_complex->new;
17     my $vals = Math::GSL::Complex::new_doubleArray(2);
19     Math::GSL::Complex::doubleArray_setitem($vals, 0, 2);
21     Math::GSL::Complex::doubleArray_setitem($vals, 1, 3);
23     warn Dumper [ $vals ];
24     warn Dumper [ $x ];