phasm/tests/integration/test_simple.py
2021-04-05 14:40:18 +02:00

14 lines
248 B
Python

from .helpers import Suite
def test_return():
code_py = """
@exported
def testEntry() -> i32:
return 13
"""
result = Suite(code_py, 'test_fib').run_code()
assert 13 is result.returned_value
assert [] == result.log_int32_list