Pass function sig in function_body::translate

This commit is contained in:
Sergey Pepyakin
2018-11-29 18:55:49 +01:00
parent 13c36612b5
commit 52c0443368
4 changed files with 75 additions and 28 deletions

View File

@@ -13,6 +13,11 @@ fn execute_wat(wat: &str, a: usize, b: usize) -> usize {
translated.execute_func(0, a, b)
}
#[test]
fn empty() {
let _ = translate_wat("(module (func))");
}
#[test]
fn adds() {
const CASES: &[(usize, usize, usize)] = &[