Commit 8d1c24b
authored
fix: test case for interest_is_interesting_test.cpp
The test case titled "Years before large difference between start and target balance" contains an incorrect `want`.
Currently, `want == 85`, but if we substitute this into the expressions `balance * (1 + (interest_rate / 100))^want` and `balance * (1 + (interest_rate / 100))^(want + 1)`, we see that both expressions have a value that is much lower than `target_balance`.
This commit fixes this by setting `want` to the correct value.1 parent acc3255 commit 8d1c24b
File tree
1 file changed
+1
-1
lines changed- exercises/concept/interest-is-interesting
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments