use hex instead of u8s in test

This commit is contained in:
Edward Shen 2021-07-12 00:49:06 -04:00
parent 8daa6bdc27
commit acc3ab2186
Signed by: edward
GPG Key ID: 19182661E818369F

4
src/cache/disk.rs vendored
View File

@ -377,8 +377,8 @@ mod md5_hash {
fn to_cache_path() { fn to_cache_path() {
let hash = Md5Hash( let hash = Md5Hash(
*GenericArray::<_, <Md5 as md5::Digest>::OutputSize>::from_slice(&[ *GenericArray::<_, <Md5 as md5::Digest>::OutputSize>::from_slice(&[
// 0xab 0xcd 0xef five times, followed by an 0xab 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0xab, 0xcd,
171, 205, 239, 171, 205, 239, 171, 205, 239, 171, 205, 239, 171, 205, 239, 171, 0xef, 0xab,
]), ]),
); );
assert_eq!( assert_eq!(