Fix float substraction error

This commit is contained in:
codeShark149 authored and Alekos Filini committed 2021-07-28 11:52:51 +02:00
1 parent 2b0c4f0817
commit adceafa40c
1 file changed
+1 -1
+1 -1
View File
@@ -822,7 +822,7 @@ mod test {
assert_eq!(result.selected.len(), 3); assert_eq!(result.selected.len(), 3);
assert_eq!(result.selected_amount(), 300_010); 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] #[test]