提交 8401a3f8 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Add missing case in the original test.

上级 24a78416
......@@ -3563,6 +3563,10 @@ class T_divimpl(unittest.TestCase):
(5. / 3.))
assert numpy.allclose(function([i, ii], true_div(ii, i))(5, 3),
(3. / 5.))
assert numpy.allclose(function([i, c], i / c)(5, numpy.complex(5, 3)),
(5. / (5 + 3j)))
assert numpy.allclose(function([i, c], c / i)(5, numpy.complex(5, 3)),
((5 + 3j) / 5.))
class T_mean(unittest.TestCase):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论