• Home
  • Raw
  • Download

Lines Matching refs:EXPECT_EQ

39     EXPECT_EQ(0, breaker.current());  in TEST()
40 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), 0)); // after "hello " in TEST()
41 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST()
42 EXPECT_EQ(5, breaker.wordEnd()); in TEST()
43 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
44 EXPECT_EQ(6, breaker.current()); in TEST()
45 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
46 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST()
47 EXPECT_EQ(11, breaker.wordEnd()); in TEST()
48 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
49 EXPECT_EQ(11, breaker.current()); in TEST()
56 EXPECT_EQ(0, breaker.current()); in TEST()
58 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
59 EXPECT_EQ(0, breaker.wordStart()); // "hel{SOFT HYPHEN}lo" in TEST()
60 EXPECT_EQ(6, breaker.wordEnd()); in TEST()
61 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
62 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
63 EXPECT_EQ(7, breaker.wordStart()); // "world" in TEST()
64 EXPECT_EQ(12, breaker.wordEnd()); in TEST()
65 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
73 EXPECT_EQ(0, breaker.current()); in TEST()
74 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
75 EXPECT_EQ(0, breaker.wordStart()); in TEST()
76 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
77 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
84 EXPECT_EQ(0, breaker.current()); in TEST()
86 EXPECT_EQ(4, breaker.followingWithLocale(Locale("en-US"), 0)); // after CENT SIGN in TEST()
87 EXPECT_EQ(0, breaker.wordStart()); // "US¢" in TEST()
88 EXPECT_EQ(3, breaker.wordEnd()); in TEST()
90 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end of string in TEST()
91 EXPECT_EQ(4, breaker.wordStart()); // "JP¥" in TEST()
92 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
99 EXPECT_EQ(0, breaker.current()); in TEST()
102 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
103 EXPECT_EQ(0, breaker.wordStart()); in TEST()
104 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
120 EXPECT_EQ(0, breaker.current()); in TEST()
122 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
123 EXPECT_EQ(0, breaker.wordStart()); in TEST()
124 EXPECT_EQ(7, breaker.wordEnd()); in TEST()
125 EXPECT_EQ(17, breaker.next()); // after woman + zwj + heart + zwj + woman in TEST()
126 EXPECT_EQ(7, breaker.wordStart()); in TEST()
127 EXPECT_EQ(17, breaker.wordEnd()); in TEST()
128 EXPECT_EQ(22, breaker.next()); // after eye + zwj + left speech bubble in TEST()
129 EXPECT_EQ(17, breaker.wordStart()); in TEST()
130 EXPECT_EQ(22, breaker.wordEnd()); in TEST()
131 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
132 EXPECT_EQ(22, breaker.wordStart()); in TEST()
133 EXPECT_EQ(27, breaker.wordEnd()); in TEST()
144 EXPECT_EQ(0, breaker.current()); in TEST()
146 EXPECT_EQ(4, breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
147 EXPECT_EQ(0, breaker.wordStart()); in TEST()
148 EXPECT_EQ(4, breaker.wordEnd()); in TEST()
149 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
150 EXPECT_EQ(4, breaker.wordStart()); in TEST()
151 EXPECT_EQ(8, breaker.wordEnd()); in TEST()
168 EXPECT_EQ(0, breaker.current()); in TEST()
169 EXPECT_EQ(2, breaker.followingWithLocale(Locale("en"), 0)); in TEST()
170 EXPECT_EQ(0, breaker.wordStart()); in TEST()
171 EXPECT_EQ(2, breaker.wordEnd()); in TEST()
173 EXPECT_EQ(4, breaker.next()); in TEST()
174 EXPECT_EQ(2, breaker.wordStart()); in TEST()
175 EXPECT_EQ(4, breaker.wordEnd()); in TEST()
177 EXPECT_EQ(7, breaker.next()); in TEST()
178 EXPECT_EQ(4, breaker.wordStart()); in TEST()
179 EXPECT_EQ(7, breaker.wordEnd()); in TEST()
181 EXPECT_EQ(9, breaker.next()); in TEST()
182 EXPECT_EQ(7, breaker.wordStart()); in TEST()
183 EXPECT_EQ(9, breaker.wordEnd()); in TEST()
185 EXPECT_EQ(10, breaker.next()); in TEST()
186 EXPECT_EQ(9, breaker.wordStart()); in TEST()
187 EXPECT_EQ(10, breaker.wordEnd()); in TEST()
189 EXPECT_EQ(12, breaker.next()); in TEST()
190 EXPECT_EQ(10, breaker.wordStart()); in TEST()
191 EXPECT_EQ(12, breaker.wordEnd()); in TEST()
193 EXPECT_EQ(14, breaker.next()); in TEST()
194 EXPECT_EQ(12, breaker.wordStart()); in TEST()
195 EXPECT_EQ(14, breaker.wordEnd()); in TEST()
197 EXPECT_EQ(16, breaker.next()); in TEST()
198 EXPECT_EQ(14, breaker.wordStart()); in TEST()
199 EXPECT_EQ(16, breaker.wordEnd()); in TEST()
215 EXPECT_EQ(0, breaker.current()); in TEST()
217 EXPECT_EQ(kFlagLength, breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
218 EXPECT_EQ(0, breaker.wordStart()); in TEST()
219 EXPECT_EQ(kFlagLength, breaker.wordEnd()); in TEST()
220 EXPECT_EQ(static_cast<ssize_t>(size), breaker.next()); in TEST()
221 EXPECT_EQ(kFlagLength, breaker.wordStart()); in TEST()
222 EXPECT_EQ(kFlagLength * 2, breaker.wordEnd()); in TEST()
240 EXPECT_EQ(0, breaker.current()); in TEST()
242 EXPECT_EQ(kFlagLength, breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
243 EXPECT_EQ(0, breaker.wordStart()); in TEST()
244 EXPECT_EQ(kFlagLength, breaker.wordEnd()); in TEST()
245 EXPECT_EQ(static_cast<ssize_t>(size), breaker.next()); in TEST()
246 EXPECT_EQ(kFlagLength, breaker.wordStart()); in TEST()
247 EXPECT_EQ(kFlagLength * 2, breaker.wordEnd()); in TEST()
255 EXPECT_EQ(0, breaker.current()); in TEST()
256 EXPECT_EQ(9, breaker.followingWithLocale(Locale("en-US"), 0)); // after "¡¡hello, " in TEST()
257 EXPECT_EQ(2, breaker.wordStart()); // "hello" in TEST()
258 EXPECT_EQ(7, breaker.wordEnd()); in TEST()
259 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
260 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
261 EXPECT_EQ(9, breaker.wordStart()); // "world" in TEST()
262 EXPECT_EQ(14, breaker.wordEnd()); in TEST()
263 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
271 EXPECT_EQ(0, breaker.current()); in TEST()
272 EXPECT_EQ(11, breaker.followingWithLocale(Locale("en-US"), 0)); // after "foo@example" in TEST()
274 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
275 EXPECT_EQ(16, breaker.next()); // after ".com " in TEST()
277 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
278 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
279 EXPECT_EQ(16, breaker.wordStart()); // "x" in TEST()
280 EXPECT_EQ(17, breaker.wordEnd()); in TEST()
281 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
289 EXPECT_EQ(0, breaker.current()); in TEST()
290 EXPECT_EQ(7, breaker.followingWithLocale(Locale("en-US"), 0)); // after "mailto:" in TEST()
292 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
293 EXPECT_EQ(18, breaker.next()); // after "foo@example" in TEST()
295 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
296 EXPECT_EQ(23, breaker.next()); // after ".com " in TEST()
298 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
299 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
300 EXPECT_EQ(23, breaker.wordStart()); // "x" in TEST()
301 EXPECT_EQ(24, breaker.wordEnd()); in TEST()
302 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
312 EXPECT_EQ(0, breaker.current()); in TEST()
313 EXPECT_EQ(11, breaker.followingWithLocale(Locale("en-US"), 0)); // after "foo@example" in TEST()
315 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
316 EXPECT_EQ(15, breaker.next()); // after ".com" in TEST()
318 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
319 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
320 EXPECT_EQ(15, breaker.wordStart()); // "一" in TEST()
321 EXPECT_EQ(16, breaker.wordEnd()); in TEST()
322 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
330 EXPECT_EQ(0, breaker.current()); in TEST()
331 EXPECT_EQ(11, breaker.followingWithLocale(Locale("en-US"), 0)); // after "foo@example" in TEST()
333 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
334 EXPECT_EQ(17, breaker.next()); // after ".com̃ " in TEST()
336 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
337 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
338 EXPECT_EQ(17, breaker.wordStart()); // "x" in TEST()
339 EXPECT_EQ(18, breaker.wordEnd()); in TEST()
340 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
347 EXPECT_EQ(0, breaker.current()); in TEST()
348 EXPECT_EQ(2, breaker.followingWithLocale(Locale("en-US"), 0)); // after "a " in TEST()
349 EXPECT_EQ(0, breaker.wordStart()); // "a" in TEST()
350 EXPECT_EQ(1, breaker.wordEnd()); in TEST()
351 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
352 EXPECT_EQ(4, breaker.next()); // after "@ " in TEST()
354 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
355 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
356 EXPECT_EQ(4, breaker.wordStart()); // "b" in TEST()
357 EXPECT_EQ(5, breaker.wordEnd()); in TEST()
358 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
366 EXPECT_EQ(0, breaker.current()); in TEST()
367 EXPECT_EQ(5, breaker.followingWithLocale(Locale("en-US"), 0)); // after "http:" in TEST()
369 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
370 EXPECT_EQ(7, breaker.next()); // after "//" in TEST()
372 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
373 EXPECT_EQ(14, breaker.next()); // after "example" in TEST()
375 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
376 EXPECT_EQ(19, breaker.next()); // after ".com " in TEST()
378 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
379 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
380 EXPECT_EQ(19, breaker.wordStart()); // "x" in TEST()
381 EXPECT_EQ(20, breaker.wordEnd()); in TEST()
382 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
392 EXPECT_EQ(0, breaker.current()); in TEST()
393 EXPECT_EQ(5, breaker.followingWithLocale(Locale("en-US"), 0)); // after "http:" in TEST()
395 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
396 EXPECT_EQ(7, breaker.next()); // after "//" in TEST()
398 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
399 EXPECT_EQ(8, breaker.next()); // after "a" in TEST()
401 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
402 EXPECT_EQ(10, breaker.next()); // after ".b" in TEST()
404 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
405 EXPECT_EQ(11, breaker.next()); // after "/" in TEST()
407 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
408 EXPECT_EQ(13, breaker.next()); // after "~c" in TEST()
410 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
411 EXPECT_EQ(15, breaker.next()); // after ",d" in TEST()
413 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
414 EXPECT_EQ(17, breaker.next()); // after "-e" in TEST()
416 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
417 EXPECT_EQ(19, breaker.next()); // after "?f" in TEST()
419 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
420 EXPECT_EQ(20, breaker.next()); // after "=" in TEST()
422 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
423 EXPECT_EQ(21, breaker.next()); // after "g" in TEST()
425 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
426 EXPECT_EQ(22, breaker.next()); // after "&" in TEST()
428 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
429 EXPECT_EQ(23, breaker.next()); // after "h" in TEST()
431 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
432 EXPECT_EQ(25, breaker.next()); // after "#i" in TEST()
434 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
435 EXPECT_EQ(27, breaker.next()); // after "%j" in TEST()
437 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
438 EXPECT_EQ(29, breaker.next()); // after "_k" in TEST()
440 EXPECT_EQ(1, breaker.breakBadness()); in TEST()
441 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
443 EXPECT_EQ(0, breaker.breakBadness()); in TEST()
450 EXPECT_EQ(0, breaker.current()); in TEST()
451 EXPECT_EQ(5, breaker.followingWithLocale(Locale("en-US"), 0)); // after "http:" in TEST()
453 EXPECT_EQ(7, breaker.next()); // after "//" in TEST()
455 EXPECT_EQ(8, breaker.next()); // after "a" in TEST()
457 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
465 EXPECT_EQ(0, breaker.current()); in TEST()
466 EXPECT_EQ(5, breaker.followingWithLocale(Locale("en-US"), 0)); // after "http:" in TEST()
468 EXPECT_EQ(7, breaker.next()); // after "//" in TEST()
470 EXPECT_EQ(8, breaker.next()); // after "a" in TEST()
472 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
480 EXPECT_EQ(0, breaker.current()); in TEST()
481 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); // end in TEST()
489 EXPECT_EQ(0, breaker.current()); in TEST()
490 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), 0)); // after "Hello " in TEST()
491 EXPECT_EQ(0, breaker.wordStart()); in TEST()
492 EXPECT_EQ(5, breaker.wordEnd()); in TEST()
494 EXPECT_EQ(6, breaker.current()); in TEST()
495 EXPECT_EQ(11, breaker.next()); // after "http:" in TEST()
498 EXPECT_EQ(11, breaker.followingWithLocale(Locale("en-US"), 6)); // after "http:" in TEST()
501 EXPECT_EQ(13, breaker.next()); // after "//" in TEST()
505 EXPECT_EQ(13, breaker.followingWithLocale(Locale("en-US"), 12)); // after "//" in TEST()
507 EXPECT_EQ(16, breaker.next()); // after "abc" in TEST()
509 EXPECT_EQ(18, breaker.next()); // after "/d" in TEST()
511 EXPECT_EQ(24, breaker.next()); // after ".html" in TEST()
514 EXPECT_EQ(29, breaker.next()); // after "World" in TEST()
515 EXPECT_EQ(24, breaker.wordStart()); in TEST()
516 EXPECT_EQ(29, breaker.wordEnd()); in TEST()
538 EXPECT_EQ(0, breaker.current()); in TEST()
539 EXPECT_EQ(2, breaker.followingWithLocale(Locale("en-US"), 0)); // after "a " in TEST()
540 EXPECT_EQ(0, breaker.wordStart()); in TEST()
541 EXPECT_EQ(1, breaker.wordEnd()); in TEST()
543 EXPECT_EQ(2, breaker.current()); in TEST()
544 EXPECT_EQ(3, breaker.next()); // after CHAR_SPACE character. in TEST()
545 EXPECT_EQ(2, breaker.wordStart()); in TEST()
546 EXPECT_EQ(2, breaker.wordEnd()); in TEST()
548 EXPECT_EQ(3, breaker.current()); in TEST()
549 EXPECT_EQ(4, breaker.next()); // after sp character. in TEST()
550 EXPECT_EQ(3, breaker.wordStart()); in TEST()
551 EXPECT_EQ(4, breaker.wordEnd()); in TEST()
582 EXPECT_EQ(enUSBreaker.localeId, enUSBreaker2.localeId); in TEST()
600 EXPECT_EQ(nullptr, enUSBreaker.breaker.get()); in TEST()
609 EXPECT_EQ(enUSBreakerPtr, enUSBreaker2.breaker.get()); in TEST()
610 EXPECT_EQ(enUSBreakerLocaleId, enUSBreaker2.localeId); in TEST()
624 EXPECT_EQ(0U, pool.getPoolSize()); in TEST()
629 EXPECT_EQ(i + 1, pool.getPoolSize()); in TEST()
634 EXPECT_EQ(MAX_POOL_SIZE, pool.getPoolSize()); in TEST()