Skip to content

Commit

Permalink
Final version
Browse files Browse the repository at this point in the history
  • Loading branch information
wongwh2002 committed Oct 11, 2024
1 parent f83f485 commit 14b0618
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 15 deletions.
9 changes: 0 additions & 9 deletions tasks.txt
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
D | 0 | return book | 2019-12-02 1800
E | 0 | 2025 midterms | 2019-12-02 1900 | 2024-12-02 1800
T | 1 | borrow book
T | 0 | borrow book
D | 0 | return book | 2019-12-01 2359
E | 0 | project meeting | 2019-12-01 2359 | 2020-12-01 2359
T | 0 | borrow book
D | 0 | return book | 2019-12-01 2359
E | 0 | project meeting | 2019-12-01 2359 | 2020-12-01 2359
40 changes: 37 additions & 3 deletions text-ui-test/EXPECTED-UNIX.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,27 @@
[E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Index out of range
____________________________________________________________
____________________________________________________________
Nice! I've marked this task as not done yet:
[D][ ] return book (by: Dec 01 2019, 11:59 pm)
____________________________________________________________
____________________________________________________________
Nice! I've marked this task as not done yet:
[E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Index out of range
____________________________________________________________
____________________________________________________________
Here are the matching tasks in your list:
3. [E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
3. [E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Tasks on Dec 01 2019:
[D][ ] return book (by: Dec 01 2019, 11:59 pm)
[E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
[E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Error: no such Commands DE
Expand All @@ -50,12 +60,36 @@
Now you have 2 tasks in the list.
____________________________________________________________
____________________________________________________________
Error: null
____________________________________________________________
____________________________________________________________
Error: missing arguments for DELETE
____________________________________________________________
____________________________________________________________
Error: Please give correct input! todo is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! event is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! deadline is not enough!!
____________________________________________________________
____________________________________________________________
Please provide a date in the format yyyy/MM/dd.
____________________________________________________________
____________________________________________________________
Please provide a keyword to search for.
____________________________________________________________
____________________________________________________________
Error: Please give correct input! mark is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! unmark is not enough!!
____________________________________________________________
____________________________________________________________
Here are the tasks in your list:
0. [T][ ] borrow book
1. [E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
1. [E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Error: no such Commands TASK
Expand Down
40 changes: 37 additions & 3 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,27 @@
[E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Index out of range
____________________________________________________________
____________________________________________________________
Nice! I've marked this task as not done yet:
[D][ ] return book (by: Dec 01 2019, 11:59 pm)
____________________________________________________________
____________________________________________________________
Nice! I've marked this task as not done yet:
[E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Index out of range
____________________________________________________________
____________________________________________________________
Here are the matching tasks in your list:
3. [E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
3. [E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Tasks on Dec 01 2019:
[D][ ] return book (by: Dec 01 2019, 11:59 pm)
[E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
[E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Error: no such Commands DE
Expand All @@ -50,12 +60,36 @@
Now you have 2 tasks in the list.
____________________________________________________________
____________________________________________________________
Error: null
____________________________________________________________
____________________________________________________________
Error: missing arguments for DELETE
____________________________________________________________
____________________________________________________________
Error: Please give correct input! todo is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! event is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! deadline is not enough!!
____________________________________________________________
____________________________________________________________
Please provide a date in the format yyyy/MM/dd.
____________________________________________________________
____________________________________________________________
Please provide a keyword to search for.
____________________________________________________________
____________________________________________________________
Error: Please give correct input! mark is not enough!!
____________________________________________________________
____________________________________________________________
Error: Please give correct input! unmark is not enough!!
____________________________________________________________
____________________________________________________________
Here are the tasks in your list:
0. [T][ ] borrow book
1. [E][X] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
1. [E][ ] project meeting (from: Dec 01 2019, 11:59 pm to: Dec 01 2020, 11:59 pm)
____________________________________________________________
____________________________________________________________
Error: no such Commands TASK
Expand Down

0 comments on commit 14b0618

Please sign in to comment.