def test_ccode_ITE():
    expr = ITE(x < 1, x, x**2)
    assert ccode(expr) == (
            "((x < 1) ? (\n"
            "   x\n"
            ")\n"
            ": (\n"
            "   pow(x, 2)\n"
            "))")
dataset/ETHPy150Open sympy/sympy/sympy/printing/tests/test_ccode.py/test_ccode_ITE/original