mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 21:25:03 +00:00
Improved test for conditional panic (#1320)
This commit is contained in:
1 parent
d15cc63370
commit
11f77464fb
1 file changed
+3
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user