modify unit test

This commit is contained in:
nujz 2020-09-20 09:05:47 +08:00
parent 1262be3f0a
commit f272b76cf6
1 changed files with 8 additions and 0 deletions

View File

@ -239,5 +239,13 @@ mod tests {
assert!(from_hex(c).is_none())
}
}
let expected = [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 10, 11, 12, 13, 14, 15,
];
for i in 0..hex.len() {
println!("{}", hex[i]);
assert_eq!(from_hex(hex[i]).unwrap(), expected[i]);
}
}
}