21 lines
383 B
Python
21 lines
383 B
Python
from .helpers import Suite
|
|
|
|
def test_fib():
|
|
code_py = """
|
|
@imported('console')
|
|
def logInt32(value: i32) -> None:
|
|
...
|
|
|
|
def helper(value: i32) -> i32:
|
|
return value + 1
|
|
|
|
@exported
|
|
def testEntry():
|
|
logInt32(13 + 13 * helper(122))
|
|
"""
|
|
|
|
result = Suite(code_py, 'test_fib').run_code()
|
|
|
|
assert None is result.returned_value
|
|
assert [1612] == result.log_int32_list
|