Adding some tests for gsl_complex_vector function and one fail, in link with the...
[Math-GSL.git] / lib / Math / GSL / Const / Test.pm
blobda1858f60a4c25a94eb66e66d19b204a42a7ab1c
1 package Math::GSL::Const::Test;
2 use base q{Test::Class};
3 use Test::More;
4 use Math::GSL qw/:all/;
5 use Math::GSL::SF qw/:all/;
6 use Math::GSL::Const qw/:all/;
7 use strict;
9 sub make_fixture : Test(setup) {
10 my $self = shift;
13 sub teardown : Test(teardown) {
16 sub GSL_CONST_CGS : Tests {
17 my $self = shift;
18 my $results = {
19 'GSL_CONST_CGS_SPEED_OF_LIGHT' => 29979245800
21 verify($results, '$Math::GSL::Const');
24 sub MATH_CONSTANTS : Tests {
25 my $self = shift;
26 ok_similar( gsl_sf_log($M_E), 1,'ln($M_E)=1');
27 ok_similar( gsl_sf_exp($M_LN2), 2,'e^($M_LN2)=2' );
28 ok_similar( gsl_sf_exp($M_LNPI), $M_PI ,'e^($M_LNPI)=$M_PI');
29 ok_similar( $M_SQRT2 ** 2, 2,'($M_SQRT2)**2=2' );
30 ok_similar( $M_EULER, 0.577215664901532860606512090082 );
33 42;