New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test case and fix deficiency #161
Conversation
@@ -0,0 +1,3 @@ | |||
Full Name,NUS Email Address,Personal Email Address,Mobile Number,Faculty/School,Year of Study,Choice of Deparment,Time slots | |||
John Doe,john@u.nus.edu,john@hotmail.com,99999999,NUS,1,Department A,"09/10/2019 18:30-19:00, 10/10/2019 19:00-19:30, 11/10/2019 20:00-20:30" | |||
John Toh,john@u.nus.edu,john@hotmail.com,99999999,NUS,1,Department B,"09/10/2019 18:30-19:00, 10/10/2019 19:00-19:30, 11/10/2019 20:00-20:30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed checkstyle: error - prohibited \r\n line ending, use \n instead.
return schedulesList; | ||
} | ||
|
||
@Override | ||
public List<List<String>> getTitlesLists() { | ||
Collections.sort(schedulesList); | ||
List<List<String>> titlesLists = new LinkedList<>(); | ||
for (Schedule schedule : schedulesList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually can just do Collections.sort once in the setSchedules() method, instead of 3 times over here.
} | ||
|
||
// ========================================= Helper methods ================================================= | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to leave helper methods in the CommandTestUtil class? Theres a section for convenience methods in the class.
No description provided.