Skip to content

Commit

Permalink
Fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed Jan 9, 2021
1 parent c4e5e85 commit 93fa0d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions problems/compound_interest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ def generate_test_case(test_type):
rate = 0.0
years = randint(1, 10)

if test_type is TestCaseType.SAVINGS:
elif test_type is TestCaseType.SAVINGS:
amount = uniform(100, 25000)
rate = 0.005
years = randint(10, 25)

if test_type is TestCaseType.SP_500:
elif test_type is TestCaseType.SP_500:
amount = uniform(10000, 500000)
rate = 0.1
years = randint(7, 30)

if test_type is TestCaseType.CREDIT_CARD:
elif test_type is TestCaseType.CREDIT_CARD:
amount = uniform(250, 10000)
rate = 0.1
years = randint(7, 30)

if test_type is TestCaseType.RANDOM:
elif test_type is TestCaseType.RANDOM:
amount = uniform(0, 100000)
rate = uniform(0, 0.25)
years = randint(0, 30)
Expand Down

0 comments on commit 93fa0d7

Please sign in to comment.