Skip to content

Commit

Permalink
Change tests for sqrt_upper of double and ldouble
Browse files Browse the repository at this point in the history
  • Loading branch information
wlmb committed Jan 14, 2025
1 parent ed188e0 commit 7e718fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/ops.t
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,12 @@ is $pa->at(0), '16', 'sqrt orig value ok';
my $fnegsqrt=$lneg->float->sqrt_upper;
is_pdl($fnegsqrt**2,cfloat($lneg), "Square of sqrt_upper of float");
ok(($fnegsqrt->im >= 0)->all, "Im sqrt_upper of float");
my $fnegsqrt=$lneg->float->sqrt_upper;
is_pdl($fnegsqrt**2,cfloat($lneg), "Square of sqrt_upper of float");
ok(($fnegsqrt->im >= 0)->all, "Im sqrt_upper of float");
my $dnegsqrt=$lneg->double->sqrt_upper;
is_pdl($dnegsqrt**2,cfloat($lneg), "Square of sqrt_upper of double"); # **??** cdouble?
ok(($dnegsqrt->im >= 0)->all, "Im sqrt_upper of double");
my $ldnegsqrt=$lneg->ldouble->sqrt_upper;
is_pdl($ldnegsqrt**2,cfloat($lneg), "Square of sqrt_upper of ldouble"); # **??** cldouble?
ok(($dnegsqrt->im >= 0)->all, "Im sqrt_upper of double");
my $cfnegsqrt=$lneg->cfloat->sqrt_upper;
is_pdl($cfnegsqrt**2,cfloat($lneg), "Square of sqrt_upper of cfloat");
ok(($cfnegsqrt->im >= 0)->all, "Im sqrt_upper of cfloat");
Expand Down

0 comments on commit 7e718fc

Please sign in to comment.