@@ -977,7 +977,7 @@ void testlistAppointment_noInput_multipleOutput() throws IOException {
977
977
command .appointment ("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00" , appointmentRecord );
978
978
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n " +
979
979
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n " +
980
- "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n " + "Appointment on 19 -12-2024 " +
980
+ "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n " + "Appointment on 29 -12-2024 " +
981
981
"18:00 with Patient Helen Smith, S7654321A." ;
982
982
command .listAppointments (appointmentRecord );
983
983
assertEquals (expectedOutput , outputStreamCaptor .toString ().trim ().replace (System .lineSeparator (),
@@ -1018,7 +1018,7 @@ void testFindAppointment_date_oneOutput() throws IOException {
1018
1018
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n " +
1019
1019
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n " +
1020
1020
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A." ;
1021
- command .findAppointment ("date/18 -12-2024" , appointmentRecord );
1021
+ command .findAppointment ("date/28 -12-2024" , appointmentRecord );
1022
1022
assertEquals (expectedOutput , outputStreamCaptor .toString ().trim ().replace (System .lineSeparator (),
1023
1023
"\n " ));
1024
1024
}
@@ -1030,7 +1030,7 @@ void testFindAppointment_time_twoOutput() throws IOException {
1030
1030
command .appointment ("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00" , appointmentRecord );
1031
1031
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n " +
1032
1032
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n " +
1033
- "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n " + "Appointment on 19 -12-2024 " +
1033
+ "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n " + "Appointment on 29 -12-2024 " +
1034
1034
"18:00 with Patient Helen Smith, S7654321A." ;
1035
1035
command .findAppointment ("time/18:00" , appointmentRecord );
1036
1036
assertEquals (expectedOutput , outputStreamCaptor .toString ().trim ().replace (System .lineSeparator (),
0 commit comments