Skip to content

Commit

Permalink
Update input.txt and EXPECTED.TXT to cover more edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chydarren committed Oct 31, 2022
1 parent c7bb73a commit 5bb275a
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 8 deletions.
59 changes: 51 additions & 8 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,29 @@ ____________________________________________________________
Here are your transaction records:
[+][salary] $2000 on Sep 30 2022 | Description: jan_salary

____________________________________________________________
____________________________________________________________
Here are your transaction records:
[-][food] $20 on Sep 13 2022 | Description: NIL

____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
Here are your net categorical savings:
Expand All @@ -306,21 +329,27 @@ Here are your net categorical savings:

____________________________________________________________
____________________________________________________________
Here are your requested monthly statistics:
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
These tag(s) and/or parameter(s) are incorrectly used, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
Here is a summary of your monthly expenditure:
[Sep 2022]
Income: $2000
Expense: $20
Savings: $1980
Budget: $10000
Spending Habit: Excellent! You saved quite a lot this month.
Spending Habit: Wow, keep up the good work. You saved at least two-third of your income.
In terms of monthly budget, you have kept yourself well within the budget!

[Oct 2022]
Income: $0
Expense: $10001
Savings: $-10001
Budget: $10000
Spending Habit: You spent way more than what you have earned for the current month. Please spend wisely based on your income
Spending Habit: You spent way more than what you have earned for the current month. Please spend wisely based on your income.
In terms of monthly budget, you have spent more than your budget planned!


Expand Down Expand Up @@ -351,26 +380,40 @@ Income: $0
Expense: $10001
Savings: $-10001
Budget: $10000
Spending Habit: You spent way more than what you have earned for the current month. Please spend wisely based on your income.
In terms of monthly budget, you have spent more than your budget planned!
____________________________________________________________
____________________________________________________________
Period and number tags must be provided together, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
Month tag must be accompanied by a year tag, please enter <help> for the command guide.
____________________________________________________________
____________________________________________________________
Here are the categorical savings and expenditure summary for
The past 3 weeks:
The past 3 weeks:

-----Categorical Savings-----

-----Expenditure Summary-----
Income: $0
Expense: $0
Savings: $0
____________________________________________________________
____________________________________________________________
Here are the categorical savings and expenditure summary for
The past 5 days:

-----Categorical Savings-----
[transport] $-10000

-----Expenditure Summary-----
Income: $0
Expense: $10000
Savings: $-10000
Expense: $0
Savings: $0
____________________________________________________________
____________________________________________________________
Here are the categorical savings and expenditure summary for
The past 4 months:
The past 4 months:

-----Categorical Savings-----
[salary] $2000
Expand Down
11 changes: 11 additions & 0 deletions text-ui-test/input.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,23 @@ list c/food d/30092022
list c/food d/13092022
list t/income d/
list t/income d/30092022
list t/expense c/food d/13092022
stats s/categorical_savings y/2022
stats s/categorical_savings m/10
stats s/categorical_savings y/2022 m/10
stats s/categorical_savings p/weeks
stats s/categorical_savings n/5
stats s/categorical_savings p/days n/4
stats s/categorical_savings
stats s/monthly_expenditure p/months n/5
stats s/monthly_expenditure y/2021 m/4
stats s/monthly_expenditure
stats s/time_insights y/2022
stats s/time_insights y/2022 m/10
stats s/time_insights p/days
stats s/time_insights m/10
stats s/time_insights p/weeks n/3
stats s/time_insights p/days n/5
stats s/time_insights p/months n/4
stats s/time_insights p/mont n/4
stats s/time_insights n/4
Expand Down

0 comments on commit 5bb275a

Please sign in to comment.