Skip to content

Commit 02ae546

Browse files
committed
Fix CA Phone Tests to include 257
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
1 parent 6e39b5e commit 02ae546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/net/datafaker/providers/base/PhoneNumberTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void testPhone_esMx() {
4848
void testPhone_CA(Locale locale) {
4949
String areaCode = "263|354|382|403|587|780|825|236|250|368|428|604|672|778|204|431|506|"
5050
+ "709|782|902|226|249|289|343|365|416|437|519|548|613|647|705|807|905|367|"
51-
+ "418|438|450|468|474|514|579|581|584|683|742|753|819|873|306|639|867|879|942";
51+
+ "418|438|450|468|474|514|579|581|584|683|742|753|819|873|306|639|867|879|942|257";
5252
Pattern canadianPhone = Pattern.compile("((\\+1)?(\\(?(%s)\\)?)|(%s))[- .]\\d{3}[- .]\\d{4}".formatted(areaCode, areaCode));
5353
PhoneNumber phoneNumber = new BaseFaker(locale).phoneNumber();
5454
for (int i = 0; i < COUNT; i++) {

0 commit comments

Comments
 (0)