summaryrefslogtreecommitdiff
path: root/android/PhoneNumberUtilsTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'android/PhoneNumberUtilsTest.cpp')
-rw-r--r--android/PhoneNumberUtilsTest.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/android/PhoneNumberUtilsTest.cpp b/android/PhoneNumberUtilsTest.cpp
index ce90c0a..8e4692c 100644
--- a/android/PhoneNumberUtilsTest.cpp
+++ b/android/PhoneNumberUtilsTest.cpp
@@ -194,7 +194,7 @@ TEST(PhoneNumberUtils, compareStrictWrongPrefix) {
EXPECT_FALSE(phone_number_compare_strict("+14504503605", "5504503605"));
}
-TEST(PhoneNumberUtils, phone_number_stripped_reversed_inter) {
+TEST(PhoneNumberUtils, compareStrict_phone_number_stripped_reversed_inter) {
char out[6];
int outlen;
@@ -220,3 +220,9 @@ TEST(PhoneNumberUtils, phone_number_stripped_reversed_inter) {
// Ignoring non-dialable
ASSERT_STRIPPED_REVERSE("1A2 3?4", "4321");
}
+
+TEST(PhoneNumberUtils, compareStrictRussianNumbers) {
+ EXPECT_FALSE(phone_number_compare_strict("84951234567", "+84951234567"));
+
+ EXPECT_FALSE(phone_number_compare_strict("88001234567", "+88001234567"));
+}