From cd9601b076c9c4881f37c37f9269f686293e8df1 Mon Sep 17 00:00:00 2001 From: Jeffinson Darmawan Date: Mon, 15 Apr 2024 04:53:04 +0800 Subject: [PATCH] IO Redirection --- text-ui-test/EXPECTED-UNIX.TXT | 40 ---------------------------------- text-ui-test/EXPECTED.TXT | 40 ---------------------------------- text-ui-test/input.txt | 1 - 3 files changed, 81 deletions(-) diff --git a/text-ui-test/EXPECTED-UNIX.TXT b/text-ui-test/EXPECTED-UNIX.TXT index e9e6e7e52a..3779089fb0 100644 --- a/text-ui-test/EXPECTED-UNIX.TXT +++ b/text-ui-test/EXPECTED-UNIX.TXT @@ -10,46 +10,6 @@ Hello from Type `help`, to view a list of valid commands! What can I do for you? -Here is the table showing a list of commands you can use: -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| No. | Command | Explanation | Example | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 1 | new | Add a bouquet | new Birthday Bouquet | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 2 | delete | Delete a bouquets | delete Birthday Bouquet | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 3 | mybouquets | List current saved bouquets | mybouquets | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 4 | info | Provide information on chosen flower | info Rose | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 5 | add /c (optional) /q | Add flower to a bouquet | add Rose /c Red /q 5 /to Birthday Bouquet | -| | /to | | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 6 | remove /c (optional) /q | Remove flower from a bouquet | remove Rose /c Red /q 5 /from Birthday Bouquet | -| | /from | | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 7 | flowers | Shows a list of flowers that can be | flowers | -| | | added into mybouquets | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 8 | flowers | Shows a list of flowers associated | flowers Valentines | -| | | with said occasion | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 9 | occasion | Shows a list of occasions associated | occasion | -| | | with available flowers | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 10 | save | Saves a bouquet to an external | save Birthday Bouquet | -| | | .txt file | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 11 | recommend | Recommends a bouquet based on the | recommend | -| | | chosen occasion and colour | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 12 | compare <1st flowerName> /vs/ <2nd flowerName> | Show information regarding two flowers | compare Rose /vs/ Lily | -| | | side-by-side for comparison | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 13 | bye | Exits the programme | bye | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -____________________________________________________________ -What can I do for you? Added new bouquet to list: test ____________________________________________________________ diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index e9e6e7e52a..3779089fb0 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -10,46 +10,6 @@ Hello from Type `help`, to view a list of valid commands! What can I do for you? -Here is the table showing a list of commands you can use: -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| No. | Command | Explanation | Example | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 1 | new | Add a bouquet | new Birthday Bouquet | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 2 | delete | Delete a bouquets | delete Birthday Bouquet | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 3 | mybouquets | List current saved bouquets | mybouquets | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 4 | info | Provide information on chosen flower | info Rose | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 5 | add /c (optional) /q | Add flower to a bouquet | add Rose /c Red /q 5 /to Birthday Bouquet | -| | /to | | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 6 | remove /c (optional) /q | Remove flower from a bouquet | remove Rose /c Red /q 5 /from Birthday Bouquet | -| | /from | | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 7 | flowers | Shows a list of flowers that can be | flowers | -| | | added into mybouquets | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 8 | flowers | Shows a list of flowers associated | flowers Valentines | -| | | with said occasion | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 9 | occasion | Shows a list of occasions associated | occasion | -| | | with available flowers | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 10 | save | Saves a bouquet to an external | save Birthday Bouquet | -| | | .txt file | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 11 | recommend | Recommends a bouquet based on the | recommend | -| | | chosen occasion and colour | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 12 | compare <1st flowerName> /vs/ <2nd flowerName> | Show information regarding two flowers | compare Rose /vs/ Lily | -| | | side-by-side for comparison | | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -| 13 | bye | Exits the programme | bye | -+-----+----------------------------------------------------------+----------------------------------------+------------------------------------------------+ -____________________________________________________________ -What can I do for you? Added new bouquet to list: test ____________________________________________________________ diff --git a/text-ui-test/input.txt b/text-ui-test/input.txt index 468ae301eb..95dbd950c7 100644 --- a/text-ui-test/input.txt +++ b/text-ui-test/input.txt @@ -1,4 +1,3 @@ -help new test mybouquets bye \ No newline at end of file