forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure all phone numbers have 8 digits according to Singapore phone number format
- Loading branch information
1 parent
6ec5fe3
commit 2504e8f
Showing
6 changed files
with
20 additions
and
20 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 |
---|---|---|
|
@@ -55,7 +55,7 @@ | |
"metadata": "I like to play basketball." | ||
}, { | ||
"name" : "Elle Meyer", | ||
"phone" : "9482224", | ||
"phone" : "94822242", | ||
"email" : "[email protected]", | ||
"address" : "michegan ave", | ||
"roles" : [ ], | ||
|
@@ -68,7 +68,7 @@ | |
"metadata": "I support Manchester United." | ||
}, { | ||
"name" : "Fiona Kunz", | ||
"phone" : "9482427", | ||
"phone" : "94824272", | ||
"email" : "[email protected]", | ||
"address" : "little tokyo", | ||
"roles" : [ ], | ||
|
@@ -81,7 +81,7 @@ | |
"metadata": "I support Manchester United." | ||
}, { | ||
"name" : "George Best", | ||
"phone" : "9482442", | ||
"phone" : "94824422", | ||
"email" : "[email protected]", | ||
"address" : "4th street", | ||
"roles" : [ ], | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ public class ParserUtilTest { | |
private static final String INVALID_ROLE = "#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_ROLE_1 = "friend"; | ||
|
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 |
---|---|---|
|
@@ -69,8 +69,8 @@ public void test_nameDoesNotContainKeywords_returnsFalse() { | |
assertFalse(predicate.test(new PersonBuilder().withName("Alice Bob").build())); | ||
|
||
// Keywords match phone, email and address, but does not match name | ||
predicate = new NameContainsKeywordsPredicate(Arrays.asList("12345", "[email protected]", "Main", "Street")); | ||
assertFalse(predicate.test(new PersonBuilder().withName("Alice").withPhone("12345") | ||
predicate = new NameContainsKeywordsPredicate(Arrays.asList("12345678", "[email protected]", "Main", "Street")); | ||
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 |
---|---|---|
|
@@ -56,23 +56,23 @@ public class TypicalPersons { | |
.withAtt("0") | ||
.withSess("1") | ||
.withMetadata("I like to play basketball.").build(); | ||
public static final Person ELLE = new PersonBuilder().withName("Elle Meyer").withPhone("9482224") | ||
public static final Person ELLE = new PersonBuilder().withName("Elle Meyer").withPhone("94822242") | ||
.withEmail("[email protected]").withAddress("michegan ave").withMetadata("I support Manchester United.") | ||
.build(); | ||
public static final Person FIONA = new PersonBuilder().withName("Fiona Kunz").withPhone("9482427") | ||
public static final Person FIONA = new PersonBuilder().withName("Fiona Kunz").withPhone("94824272") | ||
.withEmail("[email protected]").withAddress("little tokyo") | ||
.withAmount("50.00") | ||
.withAtt("0") | ||
.withSess("1") | ||
.withMetadata("I support Manchester United.").build(); | ||
public static final Person GEORGE = new PersonBuilder().withName("George Best").withPhone("9482442") | ||
public static final Person GEORGE = new PersonBuilder().withName("George Best").withPhone("94824422") | ||
.withEmail("[email protected]").withAddress("4th street").withMetadata("I support Manchester United.") | ||
.build(); | ||
|
||
// Manually added | ||
public static final Person HOON = new PersonBuilder().withName("Hoon Meier").withPhone("8482424") | ||
public static final Person HOON = new PersonBuilder().withName("Hoon Meier").withPhone("84824242") | ||
.withEmail("[email protected]").withAddress("little india").build(); | ||
public static final Person IDA = new PersonBuilder().withName("Ida Mueller").withPhone("8482131") | ||
public static final Person IDA = new PersonBuilder().withName("Ida Mueller").withPhone("84821312") | ||
.withEmail("[email protected]").withAddress("chicago ave").build(); | ||
|
||
// Manually added - Person's details found in {@code CommandTestUtil} | ||
|