Skip to content

Commit e153b66

Browse files
committed
f Use ..=
1 parent 55e6bae commit e153b66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration_tests_rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ fn onchain_send_all_retains_reserve() {
530530
node_a.sync_wallets().unwrap();
531531
node_b.sync_wallets().unwrap();
532532
assert_eq!(node_a.list_balances().spendable_onchain_balance_sats, 0);
533-
assert!(((premine_amount_sat * 2 - onchain_fee_buffer_sat)..(premine_amount_sat * 2))
533+
assert!(((premine_amount_sat * 2 - onchain_fee_buffer_sat)..=(premine_amount_sat * 2))
534534
.contains(&node_b.list_balances().spendable_onchain_balance_sats));
535535

536536
// Refill to make sure we have enough reserve for the channel open.
@@ -557,7 +557,7 @@ fn onchain_send_all_retains_reserve() {
557557

558558
assert_eq!(node_a.list_balances().spendable_onchain_balance_sats, 0);
559559
assert!(((premine_amount_sat - reserve_amount_sat - onchain_fee_buffer_sat)
560-
..premine_amount_sat)
560+
..=premine_amount_sat)
561561
.contains(&node_b.list_balances().spendable_onchain_balance_sats));
562562

563563
// Send all over again, this time ensuring the reserve is accounted for
@@ -572,7 +572,7 @@ fn onchain_send_all_retains_reserve() {
572572
assert_eq!(node_b.list_balances().total_onchain_balance_sats, reserve_amount_sat);
573573
assert_eq!(node_b.list_balances().spendable_onchain_balance_sats, 0);
574574
assert!(((premine_amount_sat - reserve_amount_sat - onchain_fee_buffer_sat)
575-
..premine_amount_sat)
575+
..=premine_amount_sat)
576576
.contains(&node_a.list_balances().spendable_onchain_balance_sats));
577577
}
578578

0 commit comments

Comments
 (0)