modify unit test

This commit is contained in:
nujz 2020-09-20 09:08:04 +08:00
parent f272b76cf6
commit 8e1ffac89d
1 changed files with 1 additions and 2 deletions

View File

@ -230,8 +230,7 @@ mod tests {
fn test_from_hex() {
let hex = b"0123456789abcdefABCDEF";
let max = u8::MAX as i32 + 1;
for i in 0..max {
for i in 0..256 {
let c = i as u8;
if hex.contains(&c) {
assert!(from_hex(c).is_some())