(self, obj)
| 377 | """Test the latex repr used by Jupyter""" |
| 378 | |
| 379 | def as_latex(self, obj): |
| 380 | # right now we ignore the formatting of scalars in our tests, since |
| 381 | # it makes them too verbose. Ideally, the formatting of scalars will |
| 382 | # be fixed such that tests below continue to pass |
| 383 | obj._repr_latex_scalar = lambda x, parens=False: str(x) |
| 384 | try: |
| 385 | return obj._repr_latex_() |
| 386 | finally: |
| 387 | del obj._repr_latex_scalar |
| 388 | |
| 389 | def test_simple_polynomial(self): |
| 390 | # default input |
no test coverage detected