Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaboomzxc committed Nov 11, 2024
1 parent 68660b5 commit 7a336b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/bookbob/functions/CommandHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -722,15 +722,15 @@ void editCommand_validFormatInputtedToEditAllergies_editSuccessfully() throws IO
@Test
void add_onePatient_onePatientInRecord() throws IOException{
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/01-11-2024 12:29", records);
assertEquals(1, records.getPatients().size());
}

// @@author G13nd0n
@Test
void delete_onePatient_twoPatientInRecord() throws IOException{
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/06-11-2024 12:29", records);
command.add("add n/Will Smith ic/S7654321B p/91234567 d/AIDS m/Paracetamol ha/CAPT dob/18-06-2003" +
"v/15-10-2024 11:53", records);
command.add("add n/Shawn Knowles ic/S2468013C p/87654321 d/Fever m/Aspirin ha/Tembusu dob/23-11-1998" +
Expand All @@ -743,7 +743,7 @@ void delete_onePatient_twoPatientInRecord() throws IOException{
@Test
void testList_twoInputs_twoPatientsInRecord() throws IOException {
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/03-11-2024 12:29", records);
command.add("add n/Will Smith ic/S7654321B p/91234567 d/AIDS m/Paracetamol ha/CAPT dob/18-06-2003" +
"v/15-10-2024 11:53", records);
command.list(records);
Expand All @@ -766,7 +766,7 @@ void testList_twoInputs_twoPatientsInRecord() throws IOException {
@Test
void testFind_nric_oneOutput() throws IOException{
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/02-11-2024 12:29", records);
command.add("add n/Will Smith ic/S7654321B p/91234567 d/AIDS m/Paracetamol ha/CAPT dob/18-06-2003" +
"v/21-10-2024 15:30 al/peanuts s/male mh/diabetes", records);
command.find("ic/S7654321B", records);
Expand Down Expand Up @@ -795,7 +795,7 @@ void editCommand_validFormatInputtedToEditMedicalHistories_editSuccessfully() th
@Test
void testFind_name_multipleOutputs() throws IOException {
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/01-11-2024 12:29", records);
command.add("add n/Will Smith ic/S7654321B p/91234567 d/AIDS m/Paracetamol ha/CAPT dob/18-06-2003" +
"v/21-10-2024 15:30", records);
command.add("add n/John Smith ic/S2468024A p/87654321 d/Diabetes m/Insulin ha/CAPT dob/13-04-2002" +
Expand Down Expand Up @@ -826,7 +826,7 @@ void editCommand_invalidFormatInputtedWithoutTo_editFailsWithErrorMessage() thro
@Test
void testFind_address_multipleOutputs() throws IOException {
command.add("add n/John Doe ic/S1234567A p/98765432 d/COVID-19 m/Paracetamol ha/RC4 dob/13-04-2000" +
"v/23-11-2024 12:29", records);
"v/10-11-2024 12:29", records);
command.add("add n/Will Smith ic/S7654321B p/91234567 d/AIDS m/Paracetamol ha/CAPT dob/18-06-2003" +
"v/21-10-2024 15:30", records);
command.add("add n/John Smith ic/S2468024A p/87654321 d/Diabetes m/Insulin ha/CAPT dob/13-04-2002" +
Expand Down

0 comments on commit 7a336b2

Please sign in to comment.