MCPcopy Create free account
hub / github.com/numpy/numpy / test_symbol

Function test_symbol

numpy/polynomial/tests/test_printing.py:321–323  ·  view source on GitHub ↗
(poly, tgt)

Source from the content-addressed store, hash-verified

319 (poly.Legendre, '1.0 + 2.0·P₁(z) + 3.0·P₂(z)'),
320))
321def test_symbol(poly, tgt):
322 p = poly([1, 2, 3], symbol='z')
323 assert_equal(f"{p:unicode}", tgt)
324
325
326class TestRepr:

Callers

nothing calls this directly

Calls 2

polyFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected