(self)
| 553 | assert str(p).replace('\n', ' ') == s |
| 554 | |
| 555 | def test_non_finite(self): |
| 556 | p = poly.Polynomial([nan, inf]) |
| 557 | assert str(p) == 'nan + inf x' |
| 558 | assert p._repr_latex_() == r'$x \mapsto \text{nan} + \text{inf}\,x$' |
| 559 | with printoptions(nanstr='NAN', infstr='INF'): |
| 560 | assert str(p) == 'NAN + INF x' |
| 561 | assert p._repr_latex_() == \ |
| 562 | r'$x \mapsto \text{NAN} + \text{INF}\,x$' |
nothing calls this directly
no test coverage detected