Message272690
test_cmath includes abs() of zeros, infinities, and real or imaginary part
NaN, but does not include a test for the magnitude conversion, which would
be triggered by something like
>>> abs(complex(2.1,3.5))
4.08166632639171
>>> abs(complex('2.1+3.5j'))
4.08166632639171
And in looking through test_cmath, it appears that only the two numeric
argument form of complex(i, j) is tested for any of the functions, not the
complex('i+nj') string form.
On Sun, Aug 14, 2016 at 1:48 PM, Ned Deily <report@bugs.python.org> wrote:
>
> Ned Deily added the comment:
>
> I think tests for abs() using complex numbers are already in test_cmath.
> How do they look?
>
> ----------
> nosy: +ned.deily
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue27763>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2016-08-14 20:02:07 | Evelyn Mitchell | set | recipients:
+ Evelyn Mitchell, ned.deily |
2016-08-14 20:02:07 | Evelyn Mitchell | link | issue27763 messages |
2016-08-14 20:02:07 | Evelyn Mitchell | create | |
|