(self)
| 514 | assert_equal(str(p), '0.5000') |
| 515 | |
| 516 | def test_switch_to_exp(self): |
| 517 | for i, s in enumerate(SWITCH_TO_EXP): |
| 518 | with printoptions(precision=i): |
| 519 | p = poly.Polynomial([1.23456789*10**-i |
| 520 | for i in range(i//2+3)]) |
| 521 | assert str(p).replace('\n', ' ') == s |
| 522 | |
| 523 | def test_non_finite(self): |
| 524 | p = poly.Polynomial([nan, inf]) |
nothing calls this directly
no test coverage detected