• Home
  • Raw
  • Download

Lines Matching refs:EXPECT_THAT

139   EXPECT_THAT(language_segmenter->GetAllTerms(""), IsOkAndHolds(IsEmpty()));  in TEST_P()
147 EXPECT_THAT(language_segmenter->GetAllTerms("Hello World"), in TEST_P()
157 EXPECT_THAT( in TEST_P()
160 EXPECT_THAT(language_segmenter->GetAllTerms("Open-source project"), in TEST_P()
162 EXPECT_THAT(language_segmenter->GetAllTerms("100%"), in TEST_P()
164 EXPECT_THAT(language_segmenter->GetAllTerms("A&B"), in TEST_P()
174 EXPECT_THAT(language_segmenter->GetAllTerms("Pay $1000"), in TEST_P()
176 EXPECT_THAT(language_segmenter->GetAllTerms("A+B"), in TEST_P()
181 EXPECT_THAT(language_segmenter->GetAllTerms(text_with_tab), in TEST_P()
193 EXPECT_THAT(language_segmenter->GetAllTerms("。?·Hello!×"), in TEST_P()
202 EXPECT_THAT(language_segmenter->GetAllTerms("U.S.�� Bank"), in TEST_P()
204 EXPECT_THAT(language_segmenter->GetAllTerms("I.B.M."), in TEST_P()
206 EXPECT_THAT(language_segmenter->GetAllTerms("I,B,M"), in TEST_P()
208 EXPECT_THAT(language_segmenter->GetAllTerms("I B M"), in TEST_P()
224 EXPECT_THAT(language_segmenter->GetAllTerms("com.google.android"), in TEST_P()
226 EXPECT_THAT(language_segmenter->GetAllTerms("com:google:android"), in TEST_P()
228 EXPECT_THAT(language_segmenter->GetAllTerms("com'google'android"), in TEST_P()
230 EXPECT_THAT(language_segmenter->GetAllTerms("com_google_android"), in TEST_P()
234 EXPECT_THAT(language_segmenter->GetAllTerms("com.google.android:icing"), in TEST_P()
239 EXPECT_THAT(language_segmenter->GetAllTerms(":bar:baz"), in TEST_P()
242 EXPECT_THAT(language_segmenter->GetAllTerms("bar:baz:"), in TEST_P()
247 EXPECT_THAT(language_segmenter->GetAllTerms(" :bar:baz"), in TEST_P()
250 EXPECT_THAT(language_segmenter->GetAllTerms("bar:baz: "), in TEST_P()
254 EXPECT_THAT(language_segmenter->GetAllTerms("bar:baz:?"), in TEST_P()
256 EXPECT_THAT(language_segmenter->GetAllTerms("?:bar:baz"), in TEST_P()
258 EXPECT_THAT(language_segmenter->GetAllTerms("3:14"), in TEST_P()
260 EXPECT_THAT(language_segmenter->GetAllTerms("私:は"), in TEST_P()
262 EXPECT_THAT(language_segmenter->GetAllTerms("我:每"), in TEST_P()
264 EXPECT_THAT(language_segmenter->GetAllTerms("เดิน:ไป"), in TEST_P()
268 EXPECT_THAT(language_segmenter->GetAllTerms(".com.google.android."), in TEST_P()
272 EXPECT_THAT(language_segmenter->GetAllTerms("com,google,android"), in TEST_P()
274 EXPECT_THAT(language_segmenter->GetAllTerms("com-google-android"), in TEST_P()
276 EXPECT_THAT(language_segmenter->GetAllTerms("com+google+android"), in TEST_P()
278 EXPECT_THAT(language_segmenter->GetAllTerms("com*google*android"), in TEST_P()
280 EXPECT_THAT(language_segmenter->GetAllTerms("com@google@android"), in TEST_P()
282 EXPECT_THAT(language_segmenter->GetAllTerms("com^google^android"), in TEST_P()
284 EXPECT_THAT(language_segmenter->GetAllTerms("com&google&android"), in TEST_P()
286 EXPECT_THAT(language_segmenter->GetAllTerms("com|google|android"), in TEST_P()
288 EXPECT_THAT(language_segmenter->GetAllTerms("com/google/android"), in TEST_P()
290 EXPECT_THAT(language_segmenter->GetAllTerms("com;google;android"), in TEST_P()
292 EXPECT_THAT( in TEST_P()
302 EXPECT_THAT(language_segmenter->GetAllTerms("It's ok."), in TEST_P()
304 EXPECT_THAT(language_segmenter->GetAllTerms("He'll be back."), in TEST_P()
306 EXPECT_THAT(language_segmenter->GetAllTerms("'Hello 'World."), in TEST_P()
308 EXPECT_THAT(language_segmenter->GetAllTerms("The dogs' bone"), in TEST_P()
315 EXPECT_THAT( in TEST_P()
326 EXPECT_THAT(language_segmenter->GetAllTerms("(Hello)"), in TEST_P()
329 EXPECT_THAT(language_segmenter->GetAllTerms(")Hello("), in TEST_P()
339 EXPECT_THAT(language_segmenter->GetAllTerms("\"Hello\""), in TEST_P()
342 EXPECT_THAT(language_segmenter->GetAllTerms("'Hello'"), in TEST_P()
353 EXPECT_THAT(language_segmenter->GetAllTerms("Se7en A4 3a"), in TEST_P()
364 EXPECT_THAT( in TEST_P()
368 EXPECT_THAT(language_segmenter->GetAllTerms("3,456.789"), in TEST_P()
371 EXPECT_THAT(language_segmenter->GetAllTerms("-123"), in TEST_P()
384 EXPECT_THAT(language_segmenter->GetAllTerms(text_with_spaces), in TEST_P()
398 EXPECT_THAT(terms, ElementsAre(" ", "Hello", " ", "World")); in TEST_P()
399 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
411 EXPECT_THAT(language_segmenter->GetAllTerms("我每天走路去上班。"), in TEST_P()
414 EXPECT_THAT(language_segmenter->GetAllTerms("私は毎日仕事に歩いています。"), in TEST_P()
418 EXPECT_THAT(language_segmenter->GetAllTerms("ញុំដើរទៅធ្វើការរាល់ថ្ងៃ។"), in TEST_P()
421 EXPECT_THAT( in TEST_P()
431 EXPECT_THAT(language_segmenter->GetAllTerms("āăąḃḅḇčćç"), in TEST_P()
441 EXPECT_THAT(language_segmenter->GetAllTerms("merhaba dünya"), in TEST_P()
444 EXPECT_THAT( in TEST_P()
454 EXPECT_THAT(language_segmenter->GetAllTerms("How are you你好吗お元気ですか"), in TEST_P()
458 EXPECT_THAT( in TEST_P()
479 EXPECT_THAT(word1_address, Eq(word1_result_address)); in TEST_P()
480 EXPECT_THAT(word2_address, Eq(word2_result_address)); in TEST_P()
496 EXPECT_THAT(position_or, IsOk()); in TEST_P()
512 EXPECT_THAT(itr->ResetToStartUtf32(), IsOkAndHolds(Eq(0))); in TEST_P()
513 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
530 EXPECT_THAT(itr->ResetToStartUtf32(), IsOkAndHolds(Eq(0))); in TEST_P()
531 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
551 EXPECT_THAT(itr->ResetToStartUtf32(), IsOkAndHolds(Eq(0))); in TEST_P()
552 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
570 EXPECT_THAT(itr->ResetToStartUtf32(), IsOkAndHolds(Eq(0))); in TEST_P()
571 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
587 EXPECT_THAT(position_or, IsOk()); in TEST_P()
588 EXPECT_THAT(position_or.ValueOrDie(), Eq(26)); in TEST_P()
592 EXPECT_THAT(position_or, IsOk()); in TEST_P()
593 EXPECT_THAT(position_or.ValueOrDie(), Eq(8)); in TEST_P()
612 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(-1), IsOk()); in TEST_P()
613 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
615 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(21), in TEST_P()
617 EXPECT_THAT(itr->GetTerm(), Eq("How")); in TEST_P()
643 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
644 EXPECT_THAT(reset_to_term_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
665 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
666 EXPECT_THAT(reset_to_term_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
687 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
688 EXPECT_THAT(reset_to_term_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
713 EXPECT_THAT(advance_and_reset_terms, in TEST_P()
715 EXPECT_THAT(advance_and_reset_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
736 EXPECT_THAT(advance_and_reset_terms, in TEST_P()
738 EXPECT_THAT(advance_and_reset_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
759 EXPECT_THAT(advance_and_reset_terms, in TEST_P()
761 EXPECT_THAT(advance_and_reset_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
778 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(2), IsOkAndHolds(Eq(3))); in TEST_P()
779 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
781 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(10), IsOkAndHolds(Eq(11))); in TEST_P()
782 EXPECT_THAT(itr->GetTerm(), Eq("你好")); in TEST_P()
784 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(7), IsOkAndHolds(Eq(8))); in TEST_P()
785 EXPECT_THAT(itr->GetTerm(), Eq("you")); in TEST_P()
787 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(18), IsOkAndHolds(Eq(19))); in TEST_P()
788 EXPECT_THAT(itr->GetTerm(), Eq("か")); in TEST_P()
790 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(12), IsOkAndHolds(Eq(13))); in TEST_P()
791 EXPECT_THAT(itr->GetTerm(), Eq("吗")); in TEST_P()
793 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(3))); in TEST_P()
794 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
796 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(19), in TEST_P()
798 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
816 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(5))); in TEST_P()
817 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
819 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(2), IsOkAndHolds(Eq(5))); in TEST_P()
820 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
822 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(10), IsOkAndHolds(Eq(15))); in TEST_P()
823 EXPECT_THAT(itr->GetTerm(), Eq("World")); in TEST_P()
825 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(5), IsOkAndHolds(Eq(15))); in TEST_P()
826 EXPECT_THAT(itr->GetTerm(), Eq("World")); in TEST_P()
828 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(15), in TEST_P()
830 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
832 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(17), in TEST_P()
834 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
836 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(19), in TEST_P()
838 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
855 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(1))); in TEST_P()
856 EXPECT_THAT(itr->GetTerm(), Eq("每天")); in TEST_P()
858 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(2), IsOkAndHolds(Eq(3))); in TEST_P()
859 EXPECT_THAT(itr->GetTerm(), Eq("走路")); in TEST_P()
861 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(7), in TEST_P()
863 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
879 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(1))); in TEST_P()
880 EXPECT_THAT(itr->GetTerm(), Eq("は")); in TEST_P()
882 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(11), in TEST_P()
884 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
886 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(3), IsOkAndHolds(Eq(4))); in TEST_P()
887 EXPECT_THAT(itr->GetTerm(), Eq("仕事")); in TEST_P()
902 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(3))); in TEST_P()
903 EXPECT_THAT(itr->GetTerm(), Eq("ដើរទៅ")); in TEST_P()
905 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(15), in TEST_P()
907 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
909 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(6), IsOkAndHolds(Eq(8))); in TEST_P()
910 EXPECT_THAT(itr->GetTerm(), Eq("ធ្វើការ")); in TEST_P()
926 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(0), IsOkAndHolds(Eq(3))); in TEST_P()
927 EXPECT_THAT(itr->GetTerm(), Eq("เดิน")); in TEST_P()
929 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(17), in TEST_P()
931 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
933 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(6), IsOkAndHolds(Eq(7))); in TEST_P()
934 EXPECT_THAT(itr->GetTerm(), Eq("ไป")); in TEST_P()
936 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(12), IsOkAndHolds(Eq(14))); in TEST_P()
937 EXPECT_THAT(itr->GetTerm(), Eq("ทุก")); in TEST_P()
954 EXPECT_THAT(position_or, IsOk()); in TEST_P()
955 EXPECT_THAT(position_or.ValueOrDie(), Eq(13)); in TEST_P()
959 EXPECT_THAT(position_or, IsOk()); in TEST_P()
960 EXPECT_THAT(position_or.ValueOrDie(), Eq(12)); in TEST_P()
979 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(-1), in TEST_P()
981 EXPECT_THAT(itr->GetTerm(), Eq("are")); in TEST_P()
983 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(29), IsOk()); in TEST_P()
984 EXPECT_THAT(itr->GetTerm(), Eq("か")); in TEST_P()
1011 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
1012 EXPECT_THAT(reset_to_term_itr->GetTerm(), IsEmpty()); in TEST_P()
1013 EXPECT_THAT(advance_itr->GetTerm(), IsEmpty()); in TEST_P()
1035 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
1036 EXPECT_THAT(reset_to_term_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
1058 EXPECT_THAT(reset_terms, testing::ElementsAreArray(advance_terms)); in TEST_P()
1059 EXPECT_THAT(reset_to_term_itr->GetTerm(), Eq(advance_itr->GetTerm())); in TEST_P()
1076 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(2), in TEST_P()
1078 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1080 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(10), IsOkAndHolds(Eq(7))); in TEST_P()
1081 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
1083 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(7), IsOkAndHolds(Eq(4))); in TEST_P()
1084 EXPECT_THAT(itr->GetTerm(), Eq("are")); in TEST_P()
1086 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(18), IsOkAndHolds(Eq(15))); in TEST_P()
1087 EXPECT_THAT(itr->GetTerm(), Eq("元気")); in TEST_P()
1089 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(12), IsOkAndHolds(Eq(8))); in TEST_P()
1090 EXPECT_THAT(itr->GetTerm(), Eq("you")); in TEST_P()
1092 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1094 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1096 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(19), IsOkAndHolds(Eq(17))); in TEST_P()
1097 EXPECT_THAT(itr->GetTerm(), Eq("です")); in TEST_P()
1115 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1117 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1119 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(2), in TEST_P()
1121 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1123 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(10), IsOkAndHolds(Eq(0))); in TEST_P()
1124 EXPECT_THAT(itr->GetTerm(), Eq("Hello")); in TEST_P()
1126 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(5), IsOkAndHolds(Eq(0))); in TEST_P()
1127 EXPECT_THAT(itr->GetTerm(), Eq("Hello")); in TEST_P()
1129 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(15), IsOkAndHolds(Eq(5))); in TEST_P()
1130 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
1132 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(17), IsOkAndHolds(Eq(5))); in TEST_P()
1133 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
1135 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(19), IsOkAndHolds(Eq(5))); in TEST_P()
1136 EXPECT_THAT(itr->GetTerm(), Eq(" ")); in TEST_P()
1153 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1155 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1157 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(2), IsOkAndHolds(Eq(0))); in TEST_P()
1158 EXPECT_THAT(itr->GetTerm(), Eq("我")); in TEST_P()
1160 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(7), IsOkAndHolds(Eq(5))); in TEST_P()
1161 EXPECT_THAT(itr->GetTerm(), Eq("去")); in TEST_P()
1177 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1179 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1181 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(11), IsOkAndHolds(Eq(9))); in TEST_P()
1182 EXPECT_THAT(itr->GetTerm(), Eq("てい")); in TEST_P()
1184 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(3), IsOkAndHolds(Eq(1))); in TEST_P()
1185 EXPECT_THAT(itr->GetTerm(), Eq("は")); in TEST_P()
1200 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1202 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1204 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(16), IsOkAndHolds(Eq(8))); in TEST_P()
1205 EXPECT_THAT(itr->GetTerm(), Eq("ធ្វើការ")); in TEST_P()
1207 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(5), IsOkAndHolds(Eq(0))); in TEST_P()
1208 EXPECT_THAT(itr->GetTerm(), Eq("ញុំ")); in TEST_P()
1224 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(0), in TEST_P()
1226 EXPECT_THAT(itr->GetTerm(), IsEmpty()); in TEST_P()
1228 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(17), IsOkAndHolds(Eq(14))); in TEST_P()
1229 EXPECT_THAT(itr->GetTerm(), Eq("ทุก")); in TEST_P()
1231 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(4), IsOkAndHolds(Eq(0))); in TEST_P()
1232 EXPECT_THAT(itr->GetTerm(), Eq("ฉัน")); in TEST_P()
1234 EXPECT_THAT(itr->ResetToTermEndingBeforeUtf32(11), IsOkAndHolds(Eq(7))); in TEST_P()
1235 EXPECT_THAT(itr->GetTerm(), Eq("ไป")); in TEST_P()
1248 EXPECT_THAT(terms, ElementsAre("(", "-", "term1", " ", "OR", " ", "term2", in TEST_P()