This commit is contained in:
Michael Vines 2020-08-13 22:08:32 -07:00
parent c3e80d401f
commit 69ec1d7ca7
1 changed files with 2 additions and 3 deletions

View File

@ -13,9 +13,8 @@ mod tests {
#[test]
fn test_decimals() {
assert_eq!(
lamports_to_sol(42),
crate::amount_to_ui_amount(42, DECIMALS)
assert!(
lamports_to_sol(42) - crate::amount_to_ui_amount(42, DECIMALS).abs() < f64::EPSILON
);
assert_eq!(
sol_to_lamports(42.),