Skip to content

Commit b66b9a3

Browse files
author
kaboomzxc
committed
fix CI
1 parent b5a046f commit b66b9a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/bookbob/functions/CommandHandlerTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ void testlistAppointment_noInput_multipleOutput() throws IOException {
977977
command.appointment("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00", appointmentRecord);
978978
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
979979
"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 " +
981981
"18:00 with Patient Helen Smith, S7654321A.";
982982
command.listAppointments(appointmentRecord);
983983
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),
@@ -1018,7 +1018,7 @@ void testFindAppointment_date_oneOutput() throws IOException {
10181018
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
10191019
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n" +
10201020
"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);
10221022
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),
10231023
"\n"));
10241024
}
@@ -1030,7 +1030,7 @@ void testFindAppointment_time_twoOutput() throws IOException {
10301030
command.appointment("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00", appointmentRecord);
10311031
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
10321032
"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 " +
10341034
"18:00 with Patient Helen Smith, S7654321A.";
10351035
command.findAppointment("time/18:00", appointmentRecord);
10361036
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),

0 commit comments

Comments
 (0)