Fix tests.

This commit is contained in:
Sergey Pepyakin
2017-12-01 20:27:33 +03:00
parent 29613aef9c
commit 7ea00b975b
4 changed files with 9 additions and 4 deletions

View File

@ -82,7 +82,7 @@ fn wrong_import() {
#[test]
fn global_get_set() {
let module = module()
.with_global(GlobalEntry::new(GlobalType::new(ValueType::I32, true), InitExpr::new(vec![Opcode::I32Const(42)])))
.with_global(GlobalEntry::new(GlobalType::new(ValueType::I32, true), InitExpr::new(vec![Opcode::I32Const(42), Opcode::End])))
.function()
.signature().return_type().i32().build()
.body().with_opcodes(Opcodes::new(vec![