Fix float substraction error

This commit is contained in:
codeShark149
2021-07-28 00:50:55 +05:30
committed by Alekos Filini
parent 2b0c4f0817
commit adceafa40c

View File

@@ -822,7 +822,7 @@ mod test {
assert_eq!(result.selected.len(), 3);
assert_eq!(result.selected_amount(), 300_010);
assert!((result.fee_amount - 254.0).abs() < f32::EPSILON);
assert!((result.fee_amount as f32 - 254.0).abs() < f32::EPSILON);
}
#[test]