@@ -916,6 +916,22 @@ TEST_F(AsYouTypeFormatterTest, AYTF_LongIDD_AU) {
916
916
EXPECT_EQ (" 0011 244 250 253 222" , formatter_->InputDigit (' 2' , &result_));
917
917
}
918
918
919
+ TEST_F (AsYouTypeFormatterTest, AYTF_With_Special_Characters) {
920
+ formatter_.reset (phone_util_.GetAsYouTypeFormatter (RegionCode::JP ()));
921
+ // +81००23456
922
+ formatter_->Clear ();
923
+ EXPECT_EQ (" +" , formatter_->InputDigit (' +' , &result_));
924
+ EXPECT_EQ (" +8" , formatter_->InputDigit (' 8' , &result_));
925
+ EXPECT_EQ (" +81 " , formatter_->InputDigit (' 1' , &result_));
926
+ EXPECT_EQ (" +81 0" , formatter_->InputDigit (UnicodeString (" \u0966 " )[0 ], &result_));
927
+ EXPECT_EQ (" +81 00" , formatter_->InputDigit (UnicodeString (" \u0966 " )[0 ], &result_));
928
+ EXPECT_EQ (" +81००2" , formatter_->InputDigit (' 2' , &result_));
929
+ EXPECT_EQ (" +81००23" , formatter_->InputDigit (' 3' , &result_));
930
+ EXPECT_EQ (" +81००234" , formatter_->InputDigit (' 4' , &result_));
931
+ EXPECT_EQ (" +81००2345" , formatter_->InputDigit (' 5' , &result_));
932
+ EXPECT_EQ (" +81००23456" , formatter_->InputDigit (' 6' , &result_));
933
+ }
934
+
919
935
TEST_F (AsYouTypeFormatterTest, AYTF_LongIDD_KR) {
920
936
formatter_.reset (phone_util_.GetAsYouTypeFormatter (RegionCode::KR ()));
921
937
// 00300 1 650 253 2250
0 commit comments