From 5bb275a02399d10732bfe326efec4bbe9a2c202c Mon Sep 17 00:00:00 2001 From: chydarren Date: Mon, 31 Oct 2022 21:11:05 +0800 Subject: [PATCH] Update input.txt and EXPECTED.TXT to cover more edge cases --- text-ui-test/EXPECTED.TXT | 59 +++++++++++++++++++++++++++++++++------ text-ui-test/input.txt | 11 ++++++++ 2 files changed, 62 insertions(+), 8 deletions(-) diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 89dc08b51..7ad01a1e4 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -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 for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. ____________________________________________________________ ____________________________________________________________ Here are your net categorical savings: @@ -306,13 +329,19 @@ Here are your net categorical savings: ____________________________________________________________ ____________________________________________________________ -Here are your requested monthly statistics: +These tag(s) and/or parameter(s) are incorrectly used, please enter for the command guide. +____________________________________________________________ +____________________________________________________________ +These tag(s) and/or parameter(s) are incorrectly used, please enter 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] @@ -320,7 +349,7 @@ 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! @@ -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 for the command guide. +____________________________________________________________ +____________________________________________________________ Month tag must be accompanied by a year tag, please enter 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 diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index 077ec989f..72bd016b7 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -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