From ddc0bbdf3075b3cab3715fb754042c5423497ab7 Mon Sep 17 00:00:00 2001 From: "Johan B.W. de Vries" Date: Mon, 13 Nov 2023 14:34:07 +0100 Subject: [PATCH] Cleanup --- .../integration/test_lang/test_primitives.py | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/tests/integration/test_lang/test_primitives.py b/tests/integration/test_lang/test_primitives.py index 47633e1..96b5ad2 100644 --- a/tests/integration/test_lang/test_primitives.py +++ b/tests/integration/test_lang/test_primitives.py @@ -5,34 +5,6 @@ from phasm.type3.entry import Type3Exception from ..helpers import Suite from ..constants import ALL_INT_TYPES, ALL_FLOAT_TYPES, COMPLETE_INT_TYPES, TYPE_MAP -@pytest.mark.integration_test -@pytest.mark.parametrize('type_', ALL_INT_TYPES) -def test_expr_constant_int(type_): - code_py = f""" -@exported -def testEntry() -> {type_}: - return 13 -""" - - result = Suite(code_py).run_code() - - assert 13 == result.returned_value - assert TYPE_MAP[type_] == type(result.returned_value) - -@pytest.mark.integration_test -@pytest.mark.parametrize('type_', ALL_FLOAT_TYPES) -def test_expr_constant_float(type_): - code_py = f""" -@exported -def testEntry() -> {type_}: - return 32.125 -""" - - result = Suite(code_py).run_code() - - assert 32.125 == result.returned_value - assert TYPE_MAP[type_] == type(result.returned_value) - @pytest.mark.integration_test def test_expr_constant_literal_does_not_fit(): code_py = """