Skip to content

Commit

Permalink
units: Do trivial refactor of amount::tests
Browse files Browse the repository at this point in the history
We are so close, clean it right up. These are things that snuck in front
of this PR while it was open.

Internal change only.
  • Loading branch information
tcharding committed Jan 23, 2025
1 parent 9d69706 commit 6035d29
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions units/src/amount/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,7 @@ fn unsigned_signed_conversion() {
let max_sats: u64 = Amount::MAX.to_sat();

assert_eq!(ua(max_sats).to_signed(), sa(max_sats as i64));

assert_eq!(sa(max_sats as i64).to_unsigned(), Ok(ua(max_sats)));

assert_eq!(sa(max_sats as i64).to_unsigned().unwrap().to_signed(), sa(max_sats as i64));
}

Expand Down

0 comments on commit 6035d29

Please sign in to comment.