MVP #1

Merged
jbwdevries merged 73 commits from idea_crc32 into master 2022-08-21 12:59:21 +00:00
Showing only changes of commit c181c61040 - Show all commits

View File

@ -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