Skip to content

Commit f10329f

Browse files
Update interest.rs
1 parent fb8e82a commit f10329f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/financial/interest.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ mod tests {
149149

150150
// Standard cases
151151
assert!(
152-
(compound_interest(10000.0, 0.05, 3.0).unwrap() - 1576.250_000_000_001_4).abs()
152+
(compound_interest(10000.0, 0.05, 3.0).unwrap() - 1_576.250_000_000_001_4).abs()
153153
< EPSILON
154154
);
155155
assert!(
@@ -183,7 +183,9 @@ mod tests {
183183
const EPSILON: f64 = 1e-9;
184184

185185
// Standard cases
186-
assert!((apr_interest(10000.0, 0.05, 3.0).unwrap() - 1618.223_072_263_547).abs() < EPSILON);
186+
assert!(
187+
(apr_interest(10000.0, 0.05, 3.0).unwrap() - 1_618.223_072_263_547).abs() < EPSILON
188+
);
187189
assert!(
188190
(apr_interest(10000.0, 0.05, 1.0).unwrap() - 512.674_964_674_473_2).abs() < EPSILON
189191
);

0 commit comments

Comments
 (0)