File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ members = [
12
12
" example-crates/wallet_esplora_blocking" ,
13
13
" example-crates/wallet_esplora_async" ,
14
14
" nursery/tmp_plan" ,
15
- " nursery/coin_select"
15
+ " nursery/coin_select" ,
16
16
]
17
17
18
18
[workspace .package ]
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ macro_rules! assert_fee_rate {
167
167
}
168
168
) *
169
169
170
- #[ allow( unused_mut) ]
170
+ #[ allow( unused_mut) ]
171
171
#[ allow( unused_assignments) ]
172
172
let mut dust_change = false ;
173
173
$(
@@ -461,6 +461,16 @@ macro_rules! check_fee {
461
461
} } ;
462
462
}
463
463
464
+ /// A floating point assert! that takes an additional third argument `delta`
465
+ /// as a tolerance value when test for equality the first and second argument.
466
+ macro_rules! assert_delta {
467
+ ( $x: expr, $y: expr, $d: expr) => {
468
+ if !( $x - $y < $d || $y - $x < $d) {
469
+ panic!( ) ;
470
+ }
471
+ } ;
472
+ }
473
+
464
474
#[ test]
465
475
fn test_create_tx_drain_wallet_and_drain_to ( ) {
466
476
let ( mut wallet, _) = get_funded_wallet ( get_test_wpkh ( ) ) ;
You can’t perform that action at this time.
0 commit comments