Skip to content

Commit

Permalink
fix_CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceCatt committed Nov 10, 2024
1 parent 4568491 commit a06a297
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions data/bookbob_appointment.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Name: John Doe|NRIC: S1234567A|Date: 18-11-2024|Time: 18:00
Name: Helen Smith|NRIC: S7654321A|Date: 19-11-2024|Time: 18:00
Name: Jack Wong|NRIC: S9765432T|Date: 04-11-2100|Time: 21:19
2 changes: 1 addition & 1 deletion data/bookbob_data.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Name: John Doe | NRIC: S1234567A | Phone Number: 98765432 | Date_Of_Birth: | Home Address: | Allergy: [] | Sex: | Medical History: [] | Visit: [01-10-2024 15:30, Diagnosis: [], Medications: [], 12-10-2024 15:48, Diagnosis: [], Medications: []];
Name: Jack Wong | NRIC: S9765432T | Phone Number: 87658976 | Date_Of_Birth: 06-07-1997 | Home Address: Bukit Gombak | Allergy: [] | Sex: | Medical History: [diabetes] | Visit: [01-10-2024 17:30, Diagnosis: [Gastric], Medications: [Gaviscon Panadol]];
6 changes: 4 additions & 2 deletions src/test/java/bookbob/functions/FileHandlerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.ArrayList;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

public class FileHandlerTest {
FileHandler fileHandler = new FileHandler();
Expand Down Expand Up @@ -130,7 +131,8 @@ void testParseVisitInputStringNull() throws IOException {
@Test
void testParseVisitInputStringNull2() throws IOException {
String visitString = "[01-10-2024 17:30, : [Gastric], Medications: [Gaviscon]]";
Visit convertedVisit = fileHandler.parseVisitInputString(visitString);
assertEquals(null, convertedVisit);
assertThrows(IllegalArgumentException.class, () -> {
fileHandler.parseVisitInputString(visitString);
});
}
}

0 comments on commit a06a297

Please sign in to comment.