diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-14 14:47:15 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-14 14:47:15 +0000 |
commit | 9d6bff35783dc768c5d72663e6e2d31769c5da91 (patch) | |
tree | 76675e6de1c3945b8f06b45b9400b9c7e240c5e8 /t/op/exp.t | |
parent | 523b30316ccbf7957aa8da41729ba68b3a5f47b5 (diff) | |
download | perl-9d6bff35783dc768c5d72663e6e2d31769c5da91.tar.gz |
Make atan2(0,0) return undef
p4raw-id: //depot/perl@33676
Diffstat (limited to 't/op/exp.t')
-rwxr-xr-x | t/op/exp.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/exp.t b/t/op/exp.t index 9bc44b49b4..c49a34bd6c 100755 --- a/t/op/exp.t +++ b/t/op/exp.t @@ -6,7 +6,7 @@ BEGIN { require './test.pl'; } -plan tests => 16; +plan tests => 17; # compile time evaluation @@ -57,3 +57,7 @@ cmp_ok(round(cos(-1 * $pi_2)), '==', 0.0); # atan2() tests were removed due to differing results from calls to # atan2() on various OS's and architectures. See perlport.pod for # more information. + +# Just test that atan2(0,0) is undef, because that's implemented +# from within perl. +ok(!defined(atan2(0,0)), 'atan2(0,0) returns undef'); |