Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 20, 2024
1 parent 32f5407 commit e3c109b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ibc-apps/ics20-transfer/types/src/denom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,17 +493,13 @@ mod tests {
}

#[rstest]
#[case("transfer/channel-1/")]
#[case("transfer/channel-1/transfer/channel-2/")]
#[case("")]
#[case("transfer/channel-1")]
#[case("transfer/channel-1/transfer/channel-2")]
#[case("transfer/channel-0/")]
#[should_panic(expected = "EmptyBaseDenom")]
fn test_prefixed_empty_base_denom(#[case] prefix: &str) {
let pd_s = if prefix.is_empty() {
"".to_owned()
} else {
format!("{prefix}/")
};
PrefixedDenom::from_str(&pd_s).expect("error");
fn test_prefixed_empty_base_denom(#[case] pd_s: &str) {
PrefixedDenom::from_str(pd_s).expect("error");
}

#[rstest]
Expand Down

0 comments on commit e3c109b

Please sign in to comment.