phasm/tests/integration/test_constants.py
2022-08-16 21:25:03 +02:00

18 lines
272 B
Python

import pytest
from .helpers import Suite
@pytest.mark.integration_test
def test_return():
code_py = """
CONSTANT: i32 = 13
@exported
def testEntry() -> i32:
return CONSTANT * 5
"""
result = Suite(code_py).run_code()
assert 65 == result.returned_value