mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-26 21:22:13 +00:00
code formatting
This commit is contained in:
@ -75,10 +75,10 @@ fn interpreter_accumulate_u8() {
|
|||||||
let execution_params = ExecutionParams::from(args);
|
let execution_params = ExecutionParams::from(args);
|
||||||
let retval = module
|
let retval = module
|
||||||
.execute_export(FUNCTION_NAME, execution_params)
|
.execute_export(FUNCTION_NAME, execution_params)
|
||||||
.expect("");
|
.expect("Failed to execute function");
|
||||||
|
|
||||||
// For verification, repeat accumulation using native code
|
// For verification, repeat accumulation using native code
|
||||||
let accu = BUF.into_iter().fold(0 as i32, |a, b| a as i32 + *b as i32);
|
let accu = BUF.into_iter().fold(0 as i32, |a, b| a + *b as i32);
|
||||||
let exp_retval: Option<RuntimeValue> = Some(RuntimeValue::I32(accu));
|
let exp_retval: Option<RuntimeValue> = Some(RuntimeValue::I32(accu));
|
||||||
|
|
||||||
// Verify calculation from WebAssembly runtime is identical to expected result
|
// Verify calculation from WebAssembly runtime is identical to expected result
|
||||||
|
Reference in New Issue
Block a user