mirror of https://github.com/fafhrd91/actix-net
modify unit test
This commit is contained in:
parent
1262be3f0a
commit
f272b76cf6
|
@ -239,5 +239,13 @@ mod tests {
|
||||||
assert!(from_hex(c).is_none())
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue