Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaboomzxc committed Nov 27, 2024
1 parent b5a046f commit b66b9a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/bookbob/functions/CommandHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ void testlistAppointment_noInput_multipleOutput() throws IOException {
command.appointment("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00", appointmentRecord);
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n" +
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n" + "Appointment on 19-12-2024 " +
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n" + "Appointment on 29-12-2024 " +
"18:00 with Patient Helen Smith, S7654321A.";
command.listAppointments(appointmentRecord);
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),
Expand Down Expand Up @@ -1018,7 +1018,7 @@ void testFindAppointment_date_oneOutput() throws IOException {
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n" +
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.";
command.findAppointment("date/18-12-2024", appointmentRecord);
command.findAppointment("date/28-12-2024", appointmentRecord);
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),
"\n"));
}
Expand All @@ -1030,7 +1030,7 @@ void testFindAppointment_time_twoOutput() throws IOException {
command.appointment("n/Helen Smith ic/S7654321A date/29-12-2024 time/18:00", appointmentRecord);
String expectedOutput = "Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A has been added.\n" +
"Appointment on 29-12-2024 18:00 with Patient Helen Smith, S7654321A has been added.\n" +
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n" + "Appointment on 19-12-2024 " +
"Appointment on 28-12-2024 18:00 with Patient John Doe, S1234567A.\n" + "Appointment on 29-12-2024 " +
"18:00 with Patient Helen Smith, S7654321A.";
command.findAppointment("time/18:00", appointmentRecord);
assertEquals(expectedOutput, outputStreamCaptor.toString().trim().replace(System.lineSeparator(),
Expand Down

0 comments on commit b66b9a3

Please sign in to comment.