forked from nus-cs2103-AY2425S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nus-cs2103-AY2425S1#146 from JYL27/branch-PhoneNum…
…berBug Fix bug where phone number doesn't adhere to agreed-upon format
- Loading branch information
Showing
6 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
}, { | ||
"studentId": "25252525", | ||
"name" : "Elle Meyer", | ||
"phone" : "9482224", | ||
"phone" : "94822244", | ||
"email" : "[email protected]", | ||
"address" : "michegan ave", | ||
"course": "biomedical engineering", | ||
|
@@ -68,15 +68,15 @@ | |
}, { | ||
"studentId": "98989898", | ||
"name" : "Fiona Kunz", | ||
"phone" : "9482427", | ||
"phone" : "94824272", | ||
"email" : "[email protected]", | ||
"address" : "little tokyo", | ||
"course": "Data Science", | ||
"tag" : "Tutor" | ||
}, { | ||
"studentId": "28184003", | ||
"name" : "George Best", | ||
"phone" : "9482442", | ||
"phone" : "94824422", | ||
"email" : "[email protected]", | ||
"address" : "4th street", | ||
"course": "Dentistry", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ public class ParserUtilTest { | |
private static final String INVALID_TAG = "#friend"; | ||
|
||
private static final String VALID_NAME = "Rachel Walker"; | ||
private static final String VALID_PHONE = "123456"; | ||
private static final String VALID_PHONE = "12345678"; | ||
private static final String VALID_ADDRESS = "123 Main Street #0505"; | ||
private static final String VALID_EMAIL = "[email protected]"; | ||
private static final String VALID_TAG_1 = "Student"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ public void test_nameDoesNotContainKeywords_returnsFalse() { | |
assertFalse(predicate.test(new PersonBuilder().withName("Alice Bob").build())); | ||
|
||
predicate = new NameContainsKeywordsPredicate(Arrays.asList("12345", "[email protected]", "Main", "Street")); | ||
assertFalse(predicate.test(new PersonBuilder().withName("Alice").withPhone("12345") | ||
assertFalse(predicate.test(new PersonBuilder().withName("Alice").withPhone("12345678") | ||
.withEmail("[email protected]").withAddress("Main Street").build())); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ public class TypicalPersons { | |
public static final Person ELLE = new PersonBuilder() | ||
.withStudentId("25252525") | ||
.withName("Elle Meyer") | ||
.withPhone("9482224") | ||
.withPhone("94822244") | ||
.withEmail("[email protected]") | ||
.withAddress("michegan ave") | ||
.withCourse("biomedical engineering") | ||
|
@@ -86,7 +86,7 @@ public class TypicalPersons { | |
public static final Person FIONA = new PersonBuilder() | ||
.withStudentId("98989898") | ||
.withName("Fiona Kunz") | ||
.withPhone("9482427") | ||
.withPhone("94824272") | ||
.withEmail("[email protected]") | ||
.withAddress("little tokyo") | ||
.withCourse("Data Science") | ||
|
@@ -95,7 +95,7 @@ public class TypicalPersons { | |
public static final Person GEORGE = new PersonBuilder() | ||
.withStudentId("28184003") | ||
.withName("George Best") | ||
.withPhone("9482442") | ||
.withPhone("94824422") | ||
.withEmail("[email protected]") | ||
.withAddress("4th street") | ||
.withCourse("Dentistry") | ||
|
@@ -108,7 +108,7 @@ public class TypicalPersons { | |
public static final Person HOON = new PersonBuilder() | ||
.withStudentId("15159888") | ||
.withName("Hoon Meier") | ||
.withPhone("8482424") | ||
.withPhone("84842424") | ||
.withEmail("[email protected]") | ||
.withAddress("little india") | ||
.withCourse("Mechanical engineering") | ||
|
@@ -117,7 +117,7 @@ public class TypicalPersons { | |
public static final Person IDA = new PersonBuilder() | ||
.withStudentId("48883999") | ||
.withName("Ida Mueller") | ||
.withPhone("8482131") | ||
.withPhone("84842131") | ||
.withEmail("[email protected]") | ||
.withAddress("chicago ave") | ||
.withCourse("Architecture") | ||
|