mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
test(interface-types) Update the test_executable_instruction
macro.
It provides a better failure message.
This commit is contained in:
parent
81d65ef41f
commit
2f17a52373
@ -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