Skip to content
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

[Chiam Yun Qing] iP #22

Open
wants to merge 71 commits into
base: master
Choose a base branch
from

Conversation

chiamyunqing
Copy link

No description provided.

@chiamyunqing chiamyunqing changed the title Chiam Yun Qing iP [Chiam Yun Qing] iP Aug 20, 2020
…s easier, Add storage class for handling saving and loading of data
* branch-Level-7:
  Create new data folder to store duke.txt
  Add functionality for saving task and loading task from hard disk
  Update string format of task classes to make handling of loading tasks easier, Add storage class for handling saving and loading of data
* branch-Level-8:
  Add command to enable printing of tasks occurring on a specific date
  Add feature to process date and time for events and deadlines

# Conflicts:
#	src/main/java/Deadline.java
#	src/main/java/Duke.java
#	src/main/java/Event.java
Copy link

@thutahw thutahw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good! Just minor things like the missing spacing. Interesting use of Optional too!

+ "I assume that you are as forgetful as Nobita. Remember to bribe me with loads of Dorayaki too!";
return intro;
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to name this method as "showWelcomeMessage"?

String bye = "Goodbye, I need to find my sister now! >_<";
return bye;
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better if "showByeMessage" is used instead?

listOfTask.add(new Todo("study"));
assertEquals(2, new TaskList(listOfTask).getNumTasks());
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a spacing here: "testGetNumTask() {" ? Also, would "listOfTasks" look better?

assertEquals(listOfTask, new TaskList(listOfTask).getSameDateTasks("2020-08-08"));
assertEquals(new ArrayList<Task>(), new TaskList(listOfTask).getSameDateTasks("2020-08-09"));
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's the same as above, just missing 1 spacing between ")" and "{".

assertEquals(listOfTask, new TaskList(new ArrayList<Task>(listOfTask)).getAllTasks());
assertEquals(new ArrayList<Task>(), new TaskList().getAllTasks());
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is good! Maybe just the missing spacing like above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants