Traktor/myenv/Lib/site-packages/sympy/codegen/tests/test_pyutils.py
2024-05-23 01:57:24 +02:00

8 lines
285 B
Python

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