Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-yu committed Nov 22, 2023
1 parent c4ca129 commit 098d8d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/rarity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ mod tests {
Rarity::Common
);
assert_eq!(
Sat(50 * COIN_VALUE * DIFFCHANGE_INTERVAL - 1).rarity(),
Sat(50 * COIN_VALUE * u64::from(DIFFCHANGE_INTERVAL) - 1).rarity(),
Rarity::BlackRare
);
assert_eq!(
Expand All @@ -167,7 +167,7 @@ mod tests {
Rarity::Common
);
assert_eq!(
Sat(50 * COIN_VALUE * SUBSIDY_HALVING_INTERVAL - 1).rarity(),
Sat(50 * COIN_VALUE * u64::from(SUBSIDY_HALVING_INTERVAL) - 1).rarity(),
Rarity::BlackEpic
);
assert_eq!(
Expand Down
6 changes: 3 additions & 3 deletions src/subcommand/wallet/sats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ mod tests {
rare_sats(vec![(
outpoint(1),
vec![(
50 * COIN_VALUE * DIFFCHANGE_INTERVAL - 1,
50 * COIN_VALUE * DIFFCHANGE_INTERVAL
50 * COIN_VALUE * u64::from(DIFFCHANGE_INTERVAL) - 1,
50 * COIN_VALUE * u64::from(DIFFCHANGE_INTERVAL)
)],
)]),
vec![(
outpoint(1),
Sat(50 * COIN_VALUE * DIFFCHANGE_INTERVAL - 1),
Sat(50 * COIN_VALUE * u64::from(DIFFCHANGE_INTERVAL) - 1),
0,
Rarity::BlackRare
)]
Expand Down

0 comments on commit 098d8d0

Please sign in to comment.