|
|
|
@ -916,6 +916,22 @@ TEST_F(AsYouTypeFormatterTest, AYTF_LongIDD_AU) { |
|
|
|
EXPECT_EQ("0011 244 250 253 222", formatter_->InputDigit('2', &result_)); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_F(AsYouTypeFormatterTest, AYTF_With_Special_Characters) { |
|
|
|
formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::JP())); |
|
|
|
// +81००23456
|
|
|
|
formatter_->Clear(); |
|
|
|
EXPECT_EQ("+", formatter_->InputDigit('+', &result_)); |
|
|
|
EXPECT_EQ("+8", formatter_->InputDigit('8', &result_)); |
|
|
|
EXPECT_EQ("+81 ", formatter_->InputDigit('1', &result_)); |
|
|
|
EXPECT_EQ("+81 0", formatter_->InputDigit(UnicodeString("\u0966")[0], &result_)); |
|
|
|
EXPECT_EQ("+81 00", formatter_->InputDigit(UnicodeString("\u0966")[0], &result_)); |
|
|
|
EXPECT_EQ("+81००2", formatter_->InputDigit('2', &result_)); |
|
|
|
EXPECT_EQ("+81००23", formatter_->InputDigit('3', &result_)); |
|
|
|
EXPECT_EQ("+81००234", formatter_->InputDigit('4', &result_)); |
|
|
|
EXPECT_EQ("+81००2345", formatter_->InputDigit('5', &result_)); |
|
|
|
EXPECT_EQ("+81००23456", formatter_->InputDigit('6', &result_)); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_F(AsYouTypeFormatterTest, AYTF_LongIDD_KR) { |
|
|
|
formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::KR())); |
|
|
|
// 00300 1 650 253 2250
|
|
|
|
|