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
No known key found for this signature in database
GPG Key ID: 431401E4A4530061

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]