def test_printmethod():
    class fabs(Abs):
        def _ccode(self, printer):
            return printer._print(self.args[0]) % "fabs(%s)"
    assert ccode(fabs(x)) == "fabs(x)"
dataset/ETHPy150Open sympy/sympy/sympy/printing/tests/test_ccode.py/test_printmethod/swapped operands of `%`