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

Make Edit Command Parser with i/ prefix in user input #155

Merged

Conversation

RiyaMehta2211
Copy link

Let's modify the Edit Command Parser and the corresponding test cases to parse raw user inputs without the command word

Let's modify the Edit Command Parser and the corresponding test cases to parse raw user inputs without the command word
Copy link

@AaronJT1 AaronJT1 left a comment

Choose a reason for hiding this comment

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

Overall looks good to me!!

@@ -35,9 +33,9 @@ public DeleteCommand(IcNumber icNumber) {
@Override
public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);
List<Patient> lastShownList = model.getFilteredPatientList();
List<Patient> currentPatientList = model.getCurrentPatientList();

Choose a reason for hiding this comment

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

Nice that you are using the currentPatient list!

import java.util.Collections;
import java.util.Optional;
import java.util.Set;
import java.util.*;

Choose a reason for hiding this comment

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

Would be good to disable the import * functionality

Choose a reason for hiding this comment

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

See that you have updated the test cases as specified in previous pr good job!!

@AaronJT1 AaronJT1 merged commit 62c721f into AY2324S1-CS2103T-T14-2:master Oct 31, 2023
0 of 3 checks passed
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.

2 participants