Skip to content

Commit

Permalink
pin: Make regression.txt use slices instead of u64
Browse files Browse the repository at this point in the history
  • Loading branch information
gtker committed May 21, 2024
1 parent ba0d21e commit 88bb093
Show file tree
Hide file tree
Showing 2 changed files with 10,001 additions and 10,001 deletions.
2 changes: 1 addition & 1 deletion src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ mod test {
let content = include_str!("../tests/pin/regression.txt");
for line in content.lines() {
let mut line = line.split_whitespace();
let pin = PinCode::from_u64(line.next().unwrap().parse().unwrap()).unwrap();
let pin = PinCode::from_slice(&hex_decode_be(line.next().unwrap())).unwrap();
let pin_grid_seed: u32 = line.next().unwrap().parse().unwrap();
let server_salt: [u8; 16] = hex_decode_be(line.next().unwrap()).try_into().unwrap();
let client_salt: [u8; 16] = hex_decode_be(line.next().unwrap()).try_into().unwrap();
Expand Down
Loading

0 comments on commit 88bb093

Please sign in to comment.