%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/sympy/codegen/tests/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/sympy/codegen/tests/test_pyutils.py

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))'
    assert render_as_module(ast, standard='python2') == \
        '\n\nprint "coordinate: %12.5g %12.5g" % (x, y)'

Zerion Mini Shell 1.0