Skip to content

Commit

Permalink
Added more unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Feb 29, 2024
1 parent d50cf7f commit eaa51cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transaction-metrics-tracker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ mod tests {
Hash::new_unique(),
);
let mut sig = [0x0; SIGNATURE_BYTES];
sig[61] = ((*TXN_MASK & 0xf as u16) << 4) as u8;
sig[61] = ((*TXN_MASK & 0xf_u16) << 4) as u8;
sig[62] = (*TXN_MASK >> 4) as u8;

let sig = Signature::from(sig);
Expand All @@ -146,7 +146,7 @@ mod tests {
Ok(sig) => {
assert!(sig.is_some());
}
Err(_) => assert!(false, "Expected to get a matching signature!"),
Err(_) => panic!("Expected to get a matching signature!"),
}

// Invalid signature length
Expand Down

0 comments on commit eaa51cb

Please sign in to comment.