Skip to content

Commit

Permalink
Update IO testing for find function
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohii2 committed Mar 7, 2024
1 parent 8002b32 commit 5c6b134
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 52 deletions.
131 changes: 83 additions & 48 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,29 @@ Got it. I've added this task:
Now you have 2 tasks in the list.
______________________________
______________________________
Got it. I've added this task:
[T][ ] Watch CEG Video
Now you have 3 tasks in the list.
______________________________
______________________________
The following parameters are missing:
description
YOU GOTTA SAVE ME AND MY HEART!!
______________________________
______________________________
1.[T][ ] Eat Breakfast
2.[T][ ] Eat Lunch
3.[T][ ] Watch CEG Video
______________________________
______________________________
Got it. I've added this task:
[E][ ] Tutorial (from: 1pm to: 3pm)
Now you have 3 tasks in the list.
Now you have 4 tasks in the list.
______________________________
______________________________
Got it. I've added this task:
[E][ ] Lecture (from: 3pm to: 5pm)
Now you have 4 tasks in the list.
[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
Now you have 5 tasks in the list.
______________________________
______________________________
The following parameters are missing:
Expand Down Expand Up @@ -67,24 +73,25 @@ ______________________________
______________________________
Got it. I've added this task:
[E][ ] Seminar (from: 5pm to: 7pm)
Now you have 5 tasks in the list.
Now you have 6 tasks in the list.
______________________________
______________________________
1.[T][ ] Eat Breakfast
2.[T][ ] Eat Lunch
3.[E][ ] Tutorial (from: 1pm to: 3pm)
4.[E][ ] Lecture (from: 3pm to: 5pm)
5.[E][ ] Seminar (from: 5pm to: 7pm)
3.[T][ ] Watch CEG Video
4.[E][ ] Tutorial (from: 1pm to: 3pm)
5.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
6.[E][ ] Seminar (from: 5pm to: 7pm)
______________________________
______________________________
Got it. I've added this task:
[D][ ] RealizeIt (by: Thursday)
Now you have 6 tasks in the list.
Now you have 7 tasks in the list.
______________________________
______________________________
Got it. I've added this task:
[D][ ] Coursemology (by: Friday)
Now you have 7 tasks in the list.
[D][ ] CEG 1 Coursemology (by: Friday)
Now you have 8 tasks in the list.
______________________________
______________________________
The following parameters are missing:
Expand All @@ -104,69 +111,72 @@ ______________________________
______________________________
Got it. I've added this task:
[D][ ] Teammates (by: Saturday)
Now you have 8 tasks in the list.
Now you have 9 tasks in the list.
______________________________
______________________________
1.[T][ ] Eat Breakfast
2.[T][ ] Eat Lunch
3.[E][ ] Tutorial (from: 1pm to: 3pm)
4.[E][ ] Lecture (from: 3pm to: 5pm)
5.[E][ ] Seminar (from: 5pm to: 7pm)
6.[D][ ] RealizeIt (by: Thursday)
7.[D][ ] Coursemology (by: Friday)
8.[D][ ] Teammates (by: Saturday)
3.[T][ ] Watch CEG Video
4.[E][ ] Tutorial (from: 1pm to: 3pm)
5.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
6.[E][ ] Seminar (from: 5pm to: 7pm)
7.[D][ ] RealizeIt (by: Thursday)
8.[D][ ] CEG 1 Coursemology (by: Friday)
9.[D][ ] Teammates (by: Saturday)
______________________________
______________________________
Nice! I've marked this task as done
[T][X] Eat Breakfast
______________________________
______________________________
Nice! I've marked this task as done
[E][X] Tutorial (from: 1pm to: 3pm)
[T][X] Watch CEG Video
______________________________
______________________________
Nice! I've marked this task as done
[E][X] Seminar (from: 5pm to: 7pm)
[E][X] CEG 1 Lecture (from: 3pm to: 5pm)
______________________________
______________________________
Nice! I've marked this task as done
[D][X] Coursemology (by: Friday)
[D][X] RealizeIt (by: Thursday)
______________________________
______________________________
1.[T][X] Eat Breakfast
2.[T][ ] Eat Lunch
3.[E][X] Tutorial (from: 1pm to: 3pm)
4.[E][ ] Lecture (from: 3pm to: 5pm)
5.[E][X] Seminar (from: 5pm to: 7pm)
6.[D][ ] RealizeIt (by: Thursday)
7.[D][X] Coursemology (by: Friday)
8.[D][ ] Teammates (by: Saturday)
3.[T][X] Watch CEG Video
4.[E][ ] Tutorial (from: 1pm to: 3pm)
5.[E][X] CEG 1 Lecture (from: 3pm to: 5pm)
6.[E][ ] Seminar (from: 5pm to: 7pm)
7.[D][X] RealizeIt (by: Thursday)
8.[D][ ] CEG 1 Coursemology (by: Friday)
9.[D][ ] Teammates (by: Saturday)
______________________________
______________________________
Nice! I've marked this task as undone
[E][ ] Tutorial (from: 1pm to: 3pm)
[T][ ] Watch CEG Video
______________________________
______________________________
Nice! I've marked this task as undone
[E][ ] Lecture (from: 3pm to: 5pm)
[E][ ] Tutorial (from: 1pm to: 3pm)
______________________________
______________________________
Nice! I've marked this task as undone
[E][ ] Seminar (from: 5pm to: 7pm)
[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
______________________________
______________________________
Nice! I've marked this task as undone
[D][ ] RealizeIt (by: Thursday)
[E][ ] Seminar (from: 5pm to: 7pm)
______________________________
______________________________
1.[T][X] Eat Breakfast
2.[T][ ] Eat Lunch
3.[E][ ] Tutorial (from: 1pm to: 3pm)
4.[E][ ] Lecture (from: 3pm to: 5pm)
5.[E][ ] Seminar (from: 5pm to: 7pm)
6.[D][ ] RealizeIt (by: Thursday)
7.[D][X] Coursemology (by: Friday)
8.[D][ ] Teammates (by: Saturday)
3.[T][ ] Watch CEG Video
4.[E][ ] Tutorial (from: 1pm to: 3pm)
5.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
6.[E][ ] Seminar (from: 5pm to: 7pm)
7.[D][X] RealizeIt (by: Thursday)
8.[D][ ] CEG 1 Coursemology (by: Friday)
9.[D][ ] Teammates (by: Saturday)
______________________________
______________________________
Please input an integer!!
Expand All @@ -185,26 +195,50 @@ Task does not exist!!
Invalid instruction ZENBU FAKE!!
______________________________
______________________________
The following parameters are missing:
target
YOU GOTTA SAVE ME AND MY HEART!!
______________________________
______________________________
No matches!!
______________________________
______________________________
Here are the matching tasks in your list-gari:
1.[T][ ] Watch CEG Video
2.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
3.[D][ ] CEG 1 Coursemology (by: Friday)
______________________________
______________________________
Here are the matching tasks in your list-gari:
1.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
2.[D][ ] CEG 1 Coursemology (by: Friday)
______________________________
______________________________
Here are the matching tasks in your list-gari:
1.[T][ ] Watch CEG Video
______________________________
______________________________
1.[T][X] Eat Breakfast
2.[T][ ] Eat Lunch
3.[E][ ] Tutorial (from: 1pm to: 3pm)
4.[E][ ] Lecture (from: 3pm to: 5pm)
5.[E][ ] Seminar (from: 5pm to: 7pm)
6.[D][ ] RealizeIt (by: Thursday)
7.[D][X] Coursemology (by: Friday)
8.[D][ ] Teammates (by: Saturday)
3.[T][ ] Watch CEG Video
4.[E][ ] Tutorial (from: 1pm to: 3pm)
5.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
6.[E][ ] Seminar (from: 5pm to: 7pm)
7.[D][X] RealizeIt (by: Thursday)
8.[D][ ] CEG 1 Coursemology (by: Friday)
9.[D][ ] Teammates (by: Saturday)
______________________________
______________________________
Noted. I've removed this task:
[T][X] Eat Breakfast
______________________________
______________________________
Noted. I've removed this task:
[E][ ] Tutorial (from: 1pm to: 3pm)
[T][ ] Watch CEG Video
______________________________
______________________________
Noted. I've removed this task:
[D][ ] RealizeIt (by: Thursday)
[E][ ] Seminar (from: 5pm to: 7pm)
______________________________
______________________________
Task does not exist!!
Expand All @@ -220,10 +254,11 @@ Invalid instruction ZENBU FAKE!!
______________________________
______________________________
1.[T][ ] Eat Lunch
2.[E][ ] Lecture (from: 3pm to: 5pm)
3.[E][ ] Seminar (from: 5pm to: 7pm)
4.[D][X] Coursemology (by: Friday)
5.[D][ ] Teammates (by: Saturday)
2.[E][ ] Tutorial (from: 1pm to: 3pm)
3.[E][ ] CEG 1 Lecture (from: 3pm to: 5pm)
4.[D][X] RealizeIt (by: Thursday)
5.[D][ ] CEG 1 Coursemology (by: Friday)
6.[D][ ] Teammates (by: Saturday)
______________________________
______________________________
Bye! Hope to see you again soon! MEGANE!!
Expand Down
14 changes: 10 additions & 4 deletions text-ui-test/input.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
todo Eat Breakfast
todo Eat Breakfast
todo Eat Lunch
todo Watch CEG Video
todo
list
event Tutorial /from 1pm /to 3pm
event Lecture /from 3pm /to 5pm
event Seminar
event CEG 1 Lecture /from 3pm /to 5pm
event Seminar
event Seminar /from /to
event Seminar /from 5pm
event Seminar /to 7pm
event /from 5pm /to 7pm
event Seminar /from 5pm /to 7pm
list
deadline RealizeIt /by Thursday
deadline Coursemology /by Friday
deadline CEG 1 Coursemology /by Friday
deadline
deadline Teammates /by
deadline /by Saturday
Expand All @@ -32,6 +33,11 @@ mark string
mark 1000
unmark string
unmark 2000
find
find target that does not exist
find CEG
find CEG 1
find Watch CEG Video
list
delete 1
delete 2
Expand Down

0 comments on commit 5c6b134

Please sign in to comment.