(t)
| 4432 | assert_(not np.signbit(np.copysign(np.nan, 1))) |
| 4433 | |
| 4434 | def _test_nextafter(t): |
| 4435 | one = t(1) |
| 4436 | two = t(2) |
| 4437 | zero = t(0) |
| 4438 | eps = np.finfo(t).eps |
| 4439 | assert_(np.nextafter(one, two) - one == eps) |
| 4440 | assert_(np.nextafter(one, zero) - one < 0) |
| 4441 | assert_(np.isnan(np.nextafter(np.nan, one))) |
| 4442 | assert_(np.isnan(np.nextafter(one, np.nan))) |
| 4443 | assert_(np.nextafter(one, one) == one) |
| 4444 | |
| 4445 | def test_nextafter(): |
| 4446 | return _test_nextafter(np.float64) |
no test coverage detected