Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Jun 7, 2023
1 parent dfab6d6 commit 7f211fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions integration-tests/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ macro_rules! assert_eq_approx {
( $x:expr, $y:expr, $z:expr, $r:expr) => {{
let d = if $x >= $y { $x - $y } else { $y - $x };
if d > $z {
panic!("\n{}\nleft: {:?}\nright: {:?}\nallowed diff: {:?}\nactual diff: {:?}\n", $r, $x, $y, $z, d);
panic!(
"\n{}\nleft: {:?}\nright: {:?}\nallowed diff: {:?}\nactual diff: {:?}\n",
$r, $x, $y, $z, d
);
}
}};
}
Expand Down Expand Up @@ -117,7 +120,12 @@ fn transaction_fees_should_be_as_expected_when_nft_is_minted() {
format_num(min_multiplier_rust_fees * 10_000 / UNITS, 4),
);

assert_eq_approx!(rust_encoded_fees, expected_rust_encoded_fees, DIFF, "rust fees difference too large");
assert_eq_approx!(
rust_encoded_fees,
expected_rust_encoded_fees,
DIFF,
"rust fees difference too large"
);
assert_eq_approx!(ui_fees, expected_ui_fees, DIFF, "ui fees difference too large");
});
}
Expand Down

0 comments on commit 7f211fc

Please sign in to comment.