From d096e040525d6eb91e9931217117b069a3b2285d Mon Sep 17 00:00:00 2001 From: fro Date: Tue, 11 Jul 2017 19:12:01 +0300 Subject: [PATCH] assert global value persistence --- src/interpreter/tests/basics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interpreter/tests/basics.rs b/src/interpreter/tests/basics.rs index ee54797..f9bc24e 100644 --- a/src/interpreter/tests/basics.rs +++ b/src/interpreter/tests/basics.rs @@ -97,6 +97,7 @@ fn global_get_set() { let program = ProgramInstance::new().unwrap(); let module = program.add_module("main", module, None).unwrap(); assert_eq!(module.execute_index(0, vec![].into()).unwrap().unwrap(), RuntimeValue::I32(50)); + assert_eq!(module.execute_index(0, vec![].into()).unwrap().unwrap(), RuntimeValue::I32(58)); } const SIGNATURE_I32_I32: &'static [ValueType] = &[ValueType::I32, ValueType::I32];