(value)
| 2804 | |
| 2805 | |
| 2806 | def _check_neg_zero(value): |
| 2807 | if value != 0.0: |
| 2808 | return False |
| 2809 | if not np.signbit(value.real): |
| 2810 | return False |
| 2811 | if value.dtype.kind == "c": |
| 2812 | return np.signbit(value.imag) |
| 2813 | return True |
| 2814 | |
| 2815 | @pytest.mark.parametrize("dtype", np.typecodes["AllFloat"]) |
| 2816 | def test_addition_negative_zero(dtype): |
no outgoing calls
no test coverage detected