Skip to content
Snippets Groups Projects
Commit 7063e110 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Fix tests for If -> Piecewise

parent b6d277cd
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class PymbolicToSympyMapper(PymbolicToSympyLikeMapper):
elif expr.operator == ">=":
return self.sym.GreaterThan(left, right)
else:
raise NotImplementedError("Cannot understand operator {}".format(expr.operator))
raise NotImplementedError("Unknown operator '%s'" % expr.operator)
# }}}
......
......@@ -115,6 +115,7 @@ def test_pymbolic_to_sympy():
def test_sympy_if_condition():
pytest.importorskip("sympy")
from pymbolic.interop.sympy import PymbolicToSympyMapper, SympyToPymbolicMapper
forward = PymbolicToSympyMapper()
backward = SympyToPymbolicMapper()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment