Skip to content

Commit

Permalink
test native complex gives exactly 0 imaginary part - #302
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 21, 2021
1 parent 0fc7ba9 commit 7f1f9da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/nat_complex.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ is zeroes($_->[0], 2)->r2C->type, $_->[1], "r2C $_->[0] -> $_->[1]"
for [byte, 'cfloat'], [long, 'cfloat'],
[float, 'cfloat'], [cfloat, 'cfloat'],
[double, 'cdouble'], [cdouble, 'cdouble'];
is ${double(-1)->r2C->cimag->get_dataref}, ${double(0)->get_dataref}, 'r2C gives exactly zero imag part';

# dataflow from complex to real
$ar = $x->creal;
Expand Down

0 comments on commit 7f1f9da

Please sign in to comment.