team-10/venv/Lib/site-packages/sympy/codegen/tests/test_pyutils.py
2025-08-02 02:00:33 +02:00

7 lines
299 B
Python

from sympy.codegen.ast import Print
from sympy.codegen.pyutils import render_as_module
def test_standard():
ast = Print('x y'.split(), r"coordinate: %12.5g %12.5g\n")
assert render_as_module(ast, standard='python3') == \
'\n\nprint("coordinate: %12.5g %12.5g\\n" % (x, y), end="")'