Skip to content
Snippets Groups Projects
Commit 35545840 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

add regression test for typing of constants issue (fails on this commit)

parent fb564ac5
No related branches found
No related tags found
No related merge requests found
......@@ -182,3 +182,14 @@ def test_typify_integer_binops_in_floating_context():
with pytest.raises(TypificationError):
expr = typify(expr)
def test_regression_typify_constants():
ctx = KernelCreationContext(default_dtype=Fp(32))
freeze = FreezeExpressions(ctx)
typify = Typifier(ctx)
x, y = sp.symbols("x, y")
expr = (-x - y) ** 2
typify(freeze(expr)) # just test that no error is raised
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment