From c54541af36e001e11ceffaba0670f0f534b2e44e Mon Sep 17 00:00:00 2001 From: ICubE- Date: Thu, 9 Nov 2023 23:14:56 +0800 Subject: [PATCH] Fix test --- text-ui-test/EXPECTED.TXT | 65 ++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index faf89ff70f..c36b9f5ba1 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,3 +1,4 @@ +Directory created: data FitTrack - Version 2.1 Welcome to FitTrack! ___________.__ __ ___________ __ @@ -6,24 +7,32 @@ ___________.__ __ ___________ __ | \ | || | | | | | \/ __ \ \___| < \___ / |__||__| |____| |__| (____ /\___ >__|_ \ ____________________________________________________________ -Directory created: data -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. Weight must be a number. -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. Height must be a positive value. -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. Weight must be a positive value. -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. Calories must not be a negative value. -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): -Wrong format. Please enter h/ w/ g/ l/ -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): -Wrong format. Please enter h/ w/ g/ l/ -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): -Wrong format. Please enter h/ w/ g/ l/ -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): -Wrong format. Please enter h/ w/ g/ l/ -Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal): +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. +The input pattern is not valid. +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. +The input pattern is not valid. +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. +The input pattern is not valid. +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. +The input pattern is not valid. +Please enter your height (in cm), weight (in kg), gender (M or F), and daily calorie limit (in kcal). +Enter in format of `h/ w/ g/ l/`. Here are your profile settings. Height: Height: 180.0cm Weight: 80.0kg @@ -204,14 +213,14 @@ Recommended Weight: 66.02 kg ____________________________________________________________ `addsteps 2000 d/` is an invalid command. The input pattern is not valid. -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________ `addsteps` is an invalid command. The input pattern is not valid. -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________ @@ -220,20 +229,20 @@ Type `help` or `help ` to view help. ____________________________________________________________ `addsteps 200 d/2023-11` is an invalid command. The date format is not valid. -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________ `addsteps 2000 2023-11-11` is an invalid command. The input pattern is not valid. -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________ -`addsteps d/2023-11-11` is an invalid command. For input string: "d/2023-11-11" -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps d/2023-11-11` is an invalid command. The input pattern is not valid. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________ @@ -241,9 +250,9 @@ I've added the following steps: [S] 2000 steps (2023-11-11) ____________________________________________________________ -`addsteps d/` is an invalid command. For input string: "d/" -`addsteps` shows your total number of steps on a specific date. -Type `addsteps ` to add an entry of the steps walked on that date. +`addsteps d/` is an invalid command. The input pattern is not valid. +`addsteps` adds your step data to the list. +Type `addsteps d/` to add an entry of the steps walked on that date. You should type in format of `yyyy-MM-dd`. ____________________________________________________________