MVP #1
@ -421,16 +421,16 @@ def testEntry() -> i32x4:
|
|||||||
def test_imported():
|
def test_imported():
|
||||||
code_py = """
|
code_py = """
|
||||||
@imported
|
@imported
|
||||||
def helper() -> i32:
|
def helper(mul: i32) -> i32:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@exported
|
@exported
|
||||||
def testEntry() -> i32:
|
def testEntry() -> i32:
|
||||||
return helper()
|
return helper(2)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def helper() -> int:
|
def helper(mul: int) -> int:
|
||||||
return 4238
|
return 4238 * mul
|
||||||
|
|
||||||
result = Suite(code_py, 'test_imported').run_code(
|
result = Suite(code_py, 'test_imported').run_code(
|
||||||
runtime='wasmer',
|
runtime='wasmer',
|
||||||
@ -439,4 +439,4 @@ def testEntry() -> i32:
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
assert 4238 == result.returned_value
|
assert 8476 == result.returned_value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user