Skip to content
Snippets Groups Projects
Commit 11f77464 authored by kyegupov's avatar kyegupov Committed by Gav Wood
Browse files

Improved test for conditional panic (#1320)

parent d15cc633
No related merge requests found
......@@ -733,6 +733,9 @@ mod tests {
let output = WasmExecutor::new().call(&mut ext, 8, &test_code[..], "test_panic", &[]);
assert!(output.is_err());
let output = WasmExecutor::new().call(&mut ext, 8, &test_code[..], "test_conditional_panic", &[]);
assert_eq!(output.unwrap(), vec![0u8; 0]);
let output = WasmExecutor::new().call(&mut ext, 8, &test_code[..], "test_conditional_panic", &[2]);
assert!(output.is_err());
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment