Skip to content

Commit

Permalink
Removed unneeded test.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Mar 5, 2024
1 parent ef50d6d commit 9309183
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/primitives/hrp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,13 +537,4 @@ mod tests {
let hrp = Hrp::parse_unchecked(s);
assert_eq!(hrp.as_bytes(), s.as_bytes());
}

#[test]
fn error_messages() {
assert_eq!("hrp is too long, found 92 characters, must be <= 83", Error::TooLong(92).to_string());
assert_eq!("hrp is empty, must have at least 1 character", Error::Empty.to_string());
assert_eq!("found non-ASCII character: 😊", Error::NonAsciiChar('😊').to_string());
assert_eq!("byte value is not valid US-ASCII: 'ff'", Error::InvalidAsciiByte(255).to_string());
assert_eq!("hrp cannot mix upper and lower case", Error::MixedCase.to_string());
}
}

0 comments on commit 9309183

Please sign in to comment.