Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
test: simple CalculateHashIntermediate refactoring (#17813)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Jun 8, 2021
1 parent 7ee5b02 commit 01ef2a5
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions runtime/src/accounts_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2027,18 +2027,14 @@ pub mod tests {

let offset = 2;
let input = vec![
CalculateHashIntermediate::new(
0,
CalculateHashIntermediate::new_without_slot(
Hash::new_unique(),
u64::MAX - offset,
0,
Pubkey::new_unique(),
),
CalculateHashIntermediate::new(
0,
CalculateHashIntermediate::new_without_slot(
Hash::new_unique(),
offset + 1,
0,
Pubkey::new_unique(),
),
];
Expand All @@ -2052,18 +2048,14 @@ pub mod tests {

let offset = 2;
let input = vec![
vec![CalculateHashIntermediate::new(
0,
vec![CalculateHashIntermediate::new_without_slot(
Hash::new_unique(),
u64::MAX - offset,
0,
Pubkey::new_unique(),
)],
vec![CalculateHashIntermediate::new(
0,
vec![CalculateHashIntermediate::new_without_slot(
Hash::new_unique(),
offset + 1,
0,
Pubkey::new_unique(),
)],
];
Expand Down

0 comments on commit 01ef2a5

Please sign in to comment.