Ticket #52231: patch-src-phonenumberutil_test.cc.diff
File patch-src-phonenumberutil_test.cc.diff, 1.4 KB (added by arboz, 8 years ago) |
---|
-
work/libphonenumber-7.6.1/cpp/test/phonenumbers/phonenumberutil_test.cc
old new 1157 1157 // added before dialing from a mobile phone for regular length numbers, but 1158 1158 // not for short numbers. 1159 1159 test_number.set_country_code(36); 1160 test_number.set_national_number(301234567 L);1160 test_number.set_national_number(301234567ULL); 1161 1161 phone_util_.FormatNumberForMobileDialing( 1162 1162 test_number, RegionCode::HU(), false, &formatted_number); 1163 1163 EXPECT_EQ("06301234567", formatted_number); … … 1176 1176 // numbers are always output in international format, but short numbers are 1177 1177 // in national format. 1178 1178 test_number.set_country_code(1); 1179 test_number.set_national_number(6502530000 L);1179 test_number.set_national_number(6502530000ULL); 1180 1180 phone_util_.FormatNumberForMobileDialing( 1181 1181 test_number, RegionCode::US(), false, &formatted_number); 1182 1182 EXPECT_EQ("+16502530000", formatted_number); … … 1365 1365 1366 1366 // A mobile number in Argentina also has an area code. 1367 1367 number.set_country_code(54); 1368 number.set_national_number(91187654321 );1368 number.set_national_number(91187654321ULL); 1369 1369 EXPECT_EQ(3, phone_util_.GetLengthOfGeographicalAreaCode(number)); 1370 1370 1371 1371 // Google Sydney, which has area code "2".