Fix tests and cli

This commit is contained in:
Wei Tang
2018-06-29 19:06:33 +08:00
parent d6f82000ee
commit af2d61b9f8
4 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -435,7 +435,7 @@ mod tests {
.function()
.signature().param().i32().build()
.body()
.with_opcodes(elements::Instructions::new(
.with_instructions(elements::Instructions::new(
vec![
elements::Instruction::GetGlobal(0),
elements::Instruction::End
@@ -477,7 +477,7 @@ mod tests {
.function()
.signature().param().i32().build()
.body()
.with_opcodes(elements::Instructions::new(
.with_instructions(elements::Instructions::new(
vec![
elements::Instruction::GetGlobal(1),
elements::Instruction::End
@@ -510,7 +510,7 @@ mod tests {
.function()
.signature().param().i32().build()
.body()
.with_opcodes(elements::Instructions::new(
.with_instructions(elements::Instructions::new(
vec![
elements::Instruction::Call(1),
elements::Instruction::End
@@ -563,7 +563,7 @@ mod tests {
.function()
.signature().param().i32().build()
.body()
.with_opcodes(elements::Instructions::new(
.with_instructions(elements::Instructions::new(
vec![
elements::Instruction::CallIndirect(1, 0),
elements::Instruction::End