(self)
| 546 | assert_equal(str(p), '0.5000') |
| 547 | |
| 548 | def test_switch_to_exp(self): |
| 549 | for i, s in enumerate(SWITCH_TO_EXP): |
| 550 | with printoptions(precision=i): |
| 551 | p = poly.Polynomial([1.23456789 * 10**-i |
| 552 | for i in range(i // 2 + 3)]) |
| 553 | assert str(p).replace('\n', ' ') == s |
| 554 | |
| 555 | def test_non_finite(self): |
| 556 | p = poly.Polynomial([nan, inf]) |
nothing calls this directly
no test coverage detected