Skip to content

Commit

Permalink
Merge pull request nus-cs2113-AY2021S1#51 from yeapcl/master
Browse files Browse the repository at this point in the history
updated test cases
  • Loading branch information
manuelmanuntag96 authored Oct 14, 2020
2 parents bd53c87 + c16b6c6 commit 93531f8
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 2 deletions.
159 changes: 158 additions & 1 deletion text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,164 @@ Please enter your time table details.
You may refer to the User Guide for instructions.
____________________________________________________________
____________________________________________________________
Hello John Snow!
Hello Alex!
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in mon
CS2113 Lec LT21 1200-1300
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in mon
CS3243 Lec LT22 1400-1500
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in mon
CS2040C Tut COM1-2 0800-1000
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in thu
CG2028 Tut E4-4-1 0900-1100
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in fri
CG2023 Lec E7-3-10 1700-1800
____________________________________________________________
____________________________________________________________
Here are the classes in your timetable for mon:
1. CS2113 Lec LT21 1200-1300
2. CS3243 Lec LT22 1400-1500
3. CS2040C Tut COM1-2 0800-1000

There is no class in your timetable for tue!

There is no class in your timetable for wed!

Here are the classes in your timetable for thu:
1. CG2028 Tut E4-4-1 0900-1100

Here are the classes in your timetable for fri:
1. CG2023 Lec E7-3-10 1700-1800

There is no class in your timetable for sat!

There is no class in your timetable for sun!
____________________________________________________________
____________________________________________________________
Here are the classes in your timetable for mon:
1. CS2113 Lec LT21 1200-1300
2. CS3243 Lec LT22 1400-1500
3. CS2040C Tut COM1-2 0800-1000
____________________________________________________________
____________________________________________________________
Got it! I have edited mon's #3 lesson to the following timing: 1300-1400
____________________________________________________________
____________________________________________________________
Got it! I have edited fri's #1 lesson to the following timing: 0900-1100
____________________________________________________________
____________________________________________________________
Here are the classes in your timetable for mon:
1. CS2113 Lec LT21 1200-1300
2. CS3243 Lec LT22 1400-1500
3. CS2040C Tut COM1-2 1300-1400

There is no class in your timetable for tue!

There is no class in your timetable for wed!

Here are the classes in your timetable for thu:
1. CG2028 Tut E4-4-1 0900-1100

Here are the classes in your timetable for fri:
1. CG2023 Lec E7-3-10 0900-1100

There is no class in your timetable for sat!

There is no class in your timetable for sun!
____________________________________________________________
____________________________________________________________
Here are the classes in your timetable for mon:
1. CS2113 Lec LT21 1200-1300
2. CS3243 Lec LT22 1400-1500
3. CS2040C Tut COM1-2 1300-1400
____________________________________________________________
____________________________________________________________
Hello Tammy!
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in mon
CS2113 Lec LT21 1200-1300
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in mon
CS2040C Tut COM1-2 0800-1000
____________________________________________________________
____________________________________________________________
Got it! I've added the following event in thu
CG2028 Tut E4-4-1 0900-1100
____________________________________________________________
____________________________________________________________
Your common timeslots are:

0HR
1HR
2HR
3HR
4HR
5HR
6HR
7HR
11HR
16HR
17HR
18HR
19HR
20HR
21HR
22HR
23HR
____________________________________________________________
____________________________________________________________
Here are the classes in your timetable for mon:
1. CS2113 Lec LT21 1200-1300
2. CS2040C Tut COM1-2 0800-1000
____________________________________________________________
____________________________________________________________
Got it! I have edited mon's #2 lesson to the following timing: 1000-1200
____________________________________________________________
____________________________________________________________
Your common timeslots are:

0HR
1HR
2HR
3HR
4HR
5HR
6HR
7HR
8HR
9HR
16HR
17HR
18HR
19HR
20HR
21HR
22HR
23HR
____________________________________________________________
____________________________________________________________
Hello Alex!
____________________________________________________________
____________________________________________________________
Noted. I have removed this class from your time table:
CS3243 Lec LT22 1400-1500
Now you have 2 class(es) for mon in the time table.
____________________________________________________________
____________________________________________________________
Noted. I have removed this class from your fri timetable:
1. CG2023 Lec E7-3-10 0900-1100
Your fri timetable has been cleared.
____________________________________________________________
____________________________________________________________
Thanks for using WhereGotTime. Hope to see you again soon!
Expand Down
24 changes: 23 additions & 1 deletion text-ui-test/input.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
login John Snow /123123
login Alex /123
add /CS2113 Lec /mon /1200-1300 /LT21
add /CS3243 Lec /mon /1400-1500 /LT22
add /CS2040C Tut /mon /0800-1000 /COM1-2
add /CG2028 Tut /Thu /0900-1100 /E4-4-1
add /CG2023 Lec /Fri /1700-1800 /E7-3-10
list /all
list /mon
edit /mon /3 /1300-1400
edit /fri /1 /0900-1100
list /all
list /mon
login Tammy /321
add /CS2113 Lec /mon /1200-1300 /LT21
add /CS2040C Tut /mon /0800-1000 /COM1-2
add /CG2028 Tut /Thu /0900-1100 /E4-4-1
compare /Alex /mon
list /mon
edit /mon /2 /1000-1200
compare /Alex /mon
login Alex /123
delete /mon /2
clear /fri
bye

0 comments on commit 93531f8

Please sign in to comment.