test(interface-types) Update the test_executable_instruction macro.

It provides a better failure message.
This commit is contained in:
Ivan Enderlin 2020-04-07 12:34:30 +02:00
parent 81d65ef41f
commit 2f17a52373

View File

@ -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();