18 lines
272 B
Python
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
|