We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8663d commit c4de163Copy full SHA for c4de163
packages/std/src/testing/mock.rs
@@ -1241,11 +1241,13 @@ mod tests {
1241
}
1242
1243
#[test]
1244
- #[should_panic(expected = "Invalid canonical address length")]
1245
fn addr_humanize_input_length() {
1246
let api = MockApi::default();
1247
let input = CanonicalAddr::from(vec![]);
1248
- api.addr_humanize(&input).unwrap();
+ assert_eq!(
+ api.addr_humanize(&input).unwrap_err(),
1249
+ StdError::generic_err("Invalid canonical address length")
1250
+ );
1251
1252
1253
// Basic "works" test. Exhaustive tests on VM's side (packages/vm/src/imports.rs)
0 commit comments