mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
test(interface-types) Update the test_executable_instruction
macro.
It provides a better failure message.
This commit is contained in:
parent
2fffee32a5
commit
bfa5821d98
@ -111,7 +111,12 @@ macro_rules! test_executable_instruction {
|
||||
let mut instance = $instance;
|
||||
let run = interpreter.run(&invocation_inputs, &mut instance);
|
||||
|
||||
assert!(run.is_ok());
|
||||
let err = match &run {
|
||||
Ok(_) => "".to_string(),
|
||||
Err(e) => e.to_string(),
|
||||
};
|
||||
|
||||
assert!(run.is_ok(), err);
|
||||
|
||||
let stack = run.unwrap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user