Skip to content
Snippets Groups Projects
Commit 83fc5764 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

extend typification tests to check type of each expression

parent 802b270c
No related branches found
No related tags found
1 merge request!371Various fixes to constants
Pipeline #64805 passed
......@@ -38,6 +38,7 @@ def test_typify_simple():
assert isinstance(fasm, PsDeclaration)
def check(expr):
assert expr.dtype == ctx.default_dtype
match expr:
case PsConstantExpr(cs):
assert cs.value == 2
......@@ -86,6 +87,7 @@ def test_contextual_typing():
expr = typify(expr)
def check(expr):
assert expr.dtype == ctx.default_dtype
match expr:
case PsConstantExpr(cs):
assert cs.value in (2, 3, -4)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment