• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_EQ

153   ASSERT_EQ(a[6], static_cast<typename TypeParam::value_type>('g'));  in TYPED_TEST()
154 ASSERT_EQ(b[0], static_cast<typename TypeParam::value_type>('a')); in TYPED_TEST()
155 ASSERT_EQ(c[2], static_cast<typename TypeParam::value_type>('z')); in TYPED_TEST()
156 ASSERT_EQ(f[3], static_cast<typename TypeParam::value_type>('\0')); in TYPED_TEST()
157 ASSERT_EQ(f[5], static_cast<typename TypeParam::value_type>('5')); in TYPED_TEST()
159 ASSERT_EQ(*d.data(), static_cast<typename TypeParam::value_type>('f')); in TYPED_TEST()
160 ASSERT_EQ(d.data()[5], static_cast<typename TypeParam::value_type>('r')); in TYPED_TEST()
161 ASSERT_EQ(e.data(), nullptr); in TYPED_TEST()
163 ASSERT_EQ(*a.begin(), static_cast<typename TypeParam::value_type>('a')); in TYPED_TEST()
164 ASSERT_EQ(*(b.begin() + 2), static_cast<typename TypeParam::value_type>('c')); in TYPED_TEST()
165 ASSERT_EQ(*(c.end() - 1), static_cast<typename TypeParam::value_type>('z')); in TYPED_TEST()
167 ASSERT_EQ(*a.rbegin(), static_cast<typename TypeParam::value_type>('z')); in TYPED_TEST()
168 ASSERT_EQ(*(b.rbegin() + 2), in TYPED_TEST()
170 ASSERT_EQ(*(c.rend() - 1), static_cast<typename TypeParam::value_type>('x')); in TYPED_TEST()
171 ASSERT_EQ(a.rbegin() + 26, a.rend()); in TYPED_TEST()
173 ASSERT_EQ(a.size(), 26U); in TYPED_TEST()
174 ASSERT_EQ(b.size(), 3U); in TYPED_TEST()
175 ASSERT_EQ(c.size(), 3U); in TYPED_TEST()
176 ASSERT_EQ(d.size(), 6U); in TYPED_TEST()
177 ASSERT_EQ(e.size(), 0U); in TYPED_TEST()
178 ASSERT_EQ(f.size(), 7U); in TYPED_TEST()
182 ASSERT_EQ(d.begin() + 6, d.end()); in TYPED_TEST()
185 ASSERT_EQ(e.begin(), e.end()); in TYPED_TEST()
188 ASSERT_EQ(d.size(), 0U); in TYPED_TEST()
190 ASSERT_EQ(d.data(), nullptr); in TYPED_TEST()
191 ASSERT_EQ(d.begin(), d.end()); in TYPED_TEST()
218 ASSERT_EQ(a.copy(buf, 4), 4U); in TYPED_TEST()
219 ASSERT_EQ(buf[0], a[0]); in TYPED_TEST()
220 ASSERT_EQ(buf[1], a[1]); in TYPED_TEST()
221 ASSERT_EQ(buf[2], a[2]); in TYPED_TEST()
222 ASSERT_EQ(buf[3], a[3]); in TYPED_TEST()
223 ASSERT_EQ(a.copy(buf, 3, 7), 3U); in TYPED_TEST()
224 ASSERT_EQ(buf[0], a[7]); in TYPED_TEST()
225 ASSERT_EQ(buf[1], a[8]); in TYPED_TEST()
226 ASSERT_EQ(buf[2], a[9]); in TYPED_TEST()
227 ASSERT_EQ(buf[3], a[3]); in TYPED_TEST()
228 ASSERT_EQ(c.copy(buf, 99), 3U); in TYPED_TEST()
229 ASSERT_EQ(buf[0], c[0]); in TYPED_TEST()
230 ASSERT_EQ(buf[1], c[1]); in TYPED_TEST()
231 ASSERT_EQ(buf[2], c[2]); in TYPED_TEST()
232 ASSERT_EQ(buf[3], a[3]); in TYPED_TEST()
234 ASSERT_EQ(Piece::npos, TypeParam::npos); in TYPED_TEST()
236 ASSERT_EQ(a.find(b), 0U); in TYPED_TEST()
237 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST()
238 ASSERT_EQ(a.find(c), 23U); in TYPED_TEST()
239 ASSERT_EQ(a.find(c, 9), 23U); in TYPED_TEST()
240 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
241 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST()
242 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
243 ASSERT_EQ(a.find(d), 0U); in TYPED_TEST()
244 ASSERT_EQ(a.find(e), 0U); in TYPED_TEST()
245 ASSERT_EQ(a.find(d, 12), 12U); in TYPED_TEST()
246 ASSERT_EQ(a.find(e, 17), 17U); in TYPED_TEST()
249 ASSERT_EQ(a.find(g), Piece::npos); in TYPED_TEST()
251 ASSERT_EQ(d.find(b), Piece::npos); in TYPED_TEST()
252 ASSERT_EQ(e.find(b), Piece::npos); in TYPED_TEST()
253 ASSERT_EQ(d.find(b, 4), Piece::npos); in TYPED_TEST()
254 ASSERT_EQ(e.find(b, 7), Piece::npos); in TYPED_TEST()
257 ASSERT_EQ(d.find(d), empty_search_pos); in TYPED_TEST()
258 ASSERT_EQ(d.find(e), empty_search_pos); in TYPED_TEST()
259 ASSERT_EQ(e.find(d), empty_search_pos); in TYPED_TEST()
260 ASSERT_EQ(e.find(e), empty_search_pos); in TYPED_TEST()
261 ASSERT_EQ(d.find(d, 4), std::string().find(std::string(), 4)); in TYPED_TEST()
262 ASSERT_EQ(d.find(e, 4), std::string().find(std::string(), 4)); in TYPED_TEST()
263 ASSERT_EQ(e.find(d, 4), std::string().find(std::string(), 4)); in TYPED_TEST()
264 ASSERT_EQ(e.find(e, 4), std::string().find(std::string(), 4)); in TYPED_TEST()
266 ASSERT_EQ(a.find('a'), 0U); in TYPED_TEST()
267 ASSERT_EQ(a.find('c'), 2U); in TYPED_TEST()
268 ASSERT_EQ(a.find('z'), 25U); in TYPED_TEST()
269 ASSERT_EQ(a.find('$'), Piece::npos); in TYPED_TEST()
270 ASSERT_EQ(a.find('\0'), Piece::npos); in TYPED_TEST()
271 ASSERT_EQ(f.find('\0'), 3U); in TYPED_TEST()
272 ASSERT_EQ(f.find('3'), 2U); in TYPED_TEST()
273 ASSERT_EQ(f.find('5'), 5U); in TYPED_TEST()
274 ASSERT_EQ(g.find('o'), 4U); in TYPED_TEST()
275 ASSERT_EQ(g.find('o', 4), 4U); in TYPED_TEST()
276 ASSERT_EQ(g.find('o', 5), 8U); in TYPED_TEST()
277 ASSERT_EQ(a.find('b', 5), Piece::npos); in TYPED_TEST()
279 ASSERT_EQ(d.find('\0'), Piece::npos); in TYPED_TEST()
280 ASSERT_EQ(e.find('\0'), Piece::npos); in TYPED_TEST()
281 ASSERT_EQ(d.find('\0', 4), Piece::npos); in TYPED_TEST()
282 ASSERT_EQ(e.find('\0', 7), Piece::npos); in TYPED_TEST()
283 ASSERT_EQ(d.find('x'), Piece::npos); in TYPED_TEST()
284 ASSERT_EQ(e.find('x'), Piece::npos); in TYPED_TEST()
285 ASSERT_EQ(d.find('x', 4), Piece::npos); in TYPED_TEST()
286 ASSERT_EQ(e.find('x', 7), Piece::npos); in TYPED_TEST()
288 ASSERT_EQ(a.rfind(b), 0U); in TYPED_TEST()
289 ASSERT_EQ(a.rfind(b, 1), 0U); in TYPED_TEST()
290 ASSERT_EQ(a.rfind(c), 23U); in TYPED_TEST()
291 ASSERT_EQ(a.rfind(c, 22U), Piece::npos); in TYPED_TEST()
292 ASSERT_EQ(a.rfind(c, 1U), Piece::npos); in TYPED_TEST()
293 ASSERT_EQ(a.rfind(c, 0U), Piece::npos); in TYPED_TEST()
294 ASSERT_EQ(b.rfind(c), Piece::npos); in TYPED_TEST()
295 ASSERT_EQ(b.rfind(c, 0U), Piece::npos); in TYPED_TEST()
296 ASSERT_EQ(a.rfind(d), static_cast<size_t>(a.as_string().rfind(TypeParam()))); in TYPED_TEST()
297 ASSERT_EQ(a.rfind(e), a.as_string().rfind(TypeParam())); in TYPED_TEST()
298 ASSERT_EQ(a.rfind(d), static_cast<size_t>(TypeParam(a).rfind(TypeParam()))); in TYPED_TEST()
299 ASSERT_EQ(a.rfind(e), TypeParam(a).rfind(TypeParam())); in TYPED_TEST()
300 ASSERT_EQ(a.rfind(d, 12), 12U); in TYPED_TEST()
301 ASSERT_EQ(a.rfind(e, 17), 17U); in TYPED_TEST()
302 ASSERT_EQ(a.rfind(g), Piece::npos); in TYPED_TEST()
303 ASSERT_EQ(d.rfind(b), Piece::npos); in TYPED_TEST()
304 ASSERT_EQ(e.rfind(b), Piece::npos); in TYPED_TEST()
305 ASSERT_EQ(d.rfind(b, 4), Piece::npos); in TYPED_TEST()
306 ASSERT_EQ(e.rfind(b, 7), Piece::npos); in TYPED_TEST()
308 ASSERT_EQ(d.rfind(d, 4), std::string().rfind(std::string())); in TYPED_TEST()
309 ASSERT_EQ(e.rfind(d, 7), std::string().rfind(std::string())); in TYPED_TEST()
310 ASSERT_EQ(d.rfind(e, 4), std::string().rfind(std::string())); in TYPED_TEST()
311 ASSERT_EQ(e.rfind(e, 7), std::string().rfind(std::string())); in TYPED_TEST()
312 ASSERT_EQ(d.rfind(d), std::string().rfind(std::string())); in TYPED_TEST()
313 ASSERT_EQ(e.rfind(d), std::string().rfind(std::string())); in TYPED_TEST()
314 ASSERT_EQ(d.rfind(e), std::string().rfind(std::string())); in TYPED_TEST()
315 ASSERT_EQ(e.rfind(e), std::string().rfind(std::string())); in TYPED_TEST()
317 ASSERT_EQ(g.rfind('o'), 8U); in TYPED_TEST()
318 ASSERT_EQ(g.rfind('q'), Piece::npos); in TYPED_TEST()
319 ASSERT_EQ(g.rfind('o', 8), 8U); in TYPED_TEST()
320 ASSERT_EQ(g.rfind('o', 7), 4U); in TYPED_TEST()
321 ASSERT_EQ(g.rfind('o', 3), Piece::npos); in TYPED_TEST()
322 ASSERT_EQ(f.rfind('\0'), 3U); in TYPED_TEST()
323 ASSERT_EQ(f.rfind('\0', 12), 3U); in TYPED_TEST()
324 ASSERT_EQ(f.rfind('3'), 2U); in TYPED_TEST()
325 ASSERT_EQ(f.rfind('5'), 5U); in TYPED_TEST()
327 ASSERT_EQ(d.rfind('o'), Piece::npos); in TYPED_TEST()
328 ASSERT_EQ(e.rfind('o'), Piece::npos); in TYPED_TEST()
329 ASSERT_EQ(d.rfind('o', 4), Piece::npos); in TYPED_TEST()
330 ASSERT_EQ(e.rfind('o', 7), Piece::npos); in TYPED_TEST()
334 ASSERT_EQ(3U, Piece(one_two_three_four).find_first_of(comma_colon)); in TYPED_TEST()
335 ASSERT_EQ(a.find_first_of(b), 0U); in TYPED_TEST()
336 ASSERT_EQ(a.find_first_of(b, 0), 0U); in TYPED_TEST()
337 ASSERT_EQ(a.find_first_of(b, 1), 1U); in TYPED_TEST()
338 ASSERT_EQ(a.find_first_of(b, 2), 2U); in TYPED_TEST()
339 ASSERT_EQ(a.find_first_of(b, 3), Piece::npos); in TYPED_TEST()
340 ASSERT_EQ(a.find_first_of(c), 23U); in TYPED_TEST()
341 ASSERT_EQ(a.find_first_of(c, 23), 23U); in TYPED_TEST()
342 ASSERT_EQ(a.find_first_of(c, 24), 24U); in TYPED_TEST()
343 ASSERT_EQ(a.find_first_of(c, 25), 25U); in TYPED_TEST()
344 ASSERT_EQ(a.find_first_of(c, 26), Piece::npos); in TYPED_TEST()
345 ASSERT_EQ(g.find_first_of(b), 13U); in TYPED_TEST()
346 ASSERT_EQ(g.find_first_of(c), 0U); in TYPED_TEST()
347 ASSERT_EQ(a.find_first_of(f), Piece::npos); in TYPED_TEST()
348 ASSERT_EQ(f.find_first_of(a), Piece::npos); in TYPED_TEST()
350 ASSERT_EQ(a.find_first_of(d), Piece::npos); in TYPED_TEST()
351 ASSERT_EQ(a.find_first_of(e), Piece::npos); in TYPED_TEST()
352 ASSERT_EQ(d.find_first_of(b), Piece::npos); in TYPED_TEST()
353 ASSERT_EQ(e.find_first_of(b), Piece::npos); in TYPED_TEST()
354 ASSERT_EQ(d.find_first_of(d), Piece::npos); in TYPED_TEST()
355 ASSERT_EQ(e.find_first_of(d), Piece::npos); in TYPED_TEST()
356 ASSERT_EQ(d.find_first_of(e), Piece::npos); in TYPED_TEST()
357 ASSERT_EQ(e.find_first_of(e), Piece::npos); in TYPED_TEST()
359 ASSERT_EQ(a.find_first_not_of(b), 3U); in TYPED_TEST()
360 ASSERT_EQ(a.find_first_not_of(c), 0U); in TYPED_TEST()
361 ASSERT_EQ(b.find_first_not_of(a), Piece::npos); in TYPED_TEST()
362 ASSERT_EQ(c.find_first_not_of(a), Piece::npos); in TYPED_TEST()
363 ASSERT_EQ(f.find_first_not_of(a), 0U); in TYPED_TEST()
364 ASSERT_EQ(a.find_first_not_of(f), 0U); in TYPED_TEST()
365 ASSERT_EQ(a.find_first_not_of(d), 0U); in TYPED_TEST()
366 ASSERT_EQ(a.find_first_not_of(e), 0U); in TYPED_TEST()
368 ASSERT_EQ(d.find_first_not_of(a), Piece::npos); in TYPED_TEST()
369 ASSERT_EQ(e.find_first_not_of(a), Piece::npos); in TYPED_TEST()
370 ASSERT_EQ(d.find_first_not_of(d), Piece::npos); in TYPED_TEST()
371 ASSERT_EQ(e.find_first_not_of(d), Piece::npos); in TYPED_TEST()
372 ASSERT_EQ(d.find_first_not_of(e), Piece::npos); in TYPED_TEST()
373 ASSERT_EQ(e.find_first_not_of(e), Piece::npos); in TYPED_TEST()
377 ASSERT_EQ(h.find_first_not_of('='), Piece::npos); in TYPED_TEST()
378 ASSERT_EQ(h.find_first_not_of('=', 3), Piece::npos); in TYPED_TEST()
379 ASSERT_EQ(h.find_first_not_of('\0'), 0U); in TYPED_TEST()
380 ASSERT_EQ(g.find_first_not_of('x'), 2U); in TYPED_TEST()
381 ASSERT_EQ(f.find_first_not_of('\0'), 0U); in TYPED_TEST()
382 ASSERT_EQ(f.find_first_not_of('\0', 3), 4U); in TYPED_TEST()
383 ASSERT_EQ(f.find_first_not_of('\0', 2), 2U); in TYPED_TEST()
385 ASSERT_EQ(d.find_first_not_of('x'), Piece::npos); in TYPED_TEST()
386 ASSERT_EQ(e.find_first_not_of('x'), Piece::npos); in TYPED_TEST()
387 ASSERT_EQ(d.find_first_not_of('\0'), Piece::npos); in TYPED_TEST()
388 ASSERT_EQ(e.find_first_not_of('\0'), Piece::npos); in TYPED_TEST()
393 ASSERT_EQ(h.find_last_of(a), Piece::npos); in TYPED_TEST()
394 ASSERT_EQ(g.find_last_of(a), g.size()-1); in TYPED_TEST()
395 ASSERT_EQ(a.find_last_of(b), 2U); in TYPED_TEST()
396 ASSERT_EQ(a.find_last_of(c), a.size()-1); in TYPED_TEST()
397 ASSERT_EQ(f.find_last_of(i), 6U); in TYPED_TEST()
398 ASSERT_EQ(a.find_last_of('a'), 0U); in TYPED_TEST()
399 ASSERT_EQ(a.find_last_of('b'), 1U); in TYPED_TEST()
400 ASSERT_EQ(a.find_last_of('z'), 25U); in TYPED_TEST()
401 ASSERT_EQ(a.find_last_of('a', 5), 0U); in TYPED_TEST()
402 ASSERT_EQ(a.find_last_of('b', 5), 1U); in TYPED_TEST()
403 ASSERT_EQ(a.find_last_of('b', 0), Piece::npos); in TYPED_TEST()
404 ASSERT_EQ(a.find_last_of('z', 25), 25U); in TYPED_TEST()
405 ASSERT_EQ(a.find_last_of('z', 24), Piece::npos); in TYPED_TEST()
406 ASSERT_EQ(f.find_last_of(i, 5), 5U); in TYPED_TEST()
407 ASSERT_EQ(f.find_last_of(i, 6), 6U); in TYPED_TEST()
408 ASSERT_EQ(f.find_last_of(a, 4), Piece::npos); in TYPED_TEST()
410 ASSERT_EQ(f.find_last_of(d), Piece::npos); in TYPED_TEST()
411 ASSERT_EQ(f.find_last_of(e), Piece::npos); in TYPED_TEST()
412 ASSERT_EQ(f.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
413 ASSERT_EQ(f.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
414 ASSERT_EQ(d.find_last_of(d), Piece::npos); in TYPED_TEST()
415 ASSERT_EQ(d.find_last_of(e), Piece::npos); in TYPED_TEST()
416 ASSERT_EQ(e.find_last_of(d), Piece::npos); in TYPED_TEST()
417 ASSERT_EQ(e.find_last_of(e), Piece::npos); in TYPED_TEST()
418 ASSERT_EQ(d.find_last_of(f), Piece::npos); in TYPED_TEST()
419 ASSERT_EQ(e.find_last_of(f), Piece::npos); in TYPED_TEST()
420 ASSERT_EQ(d.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
421 ASSERT_EQ(d.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
422 ASSERT_EQ(e.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
423 ASSERT_EQ(e.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
424 ASSERT_EQ(d.find_last_of(f, 4), Piece::npos); in TYPED_TEST()
425 ASSERT_EQ(e.find_last_of(f, 4), Piece::npos); in TYPED_TEST()
427 ASSERT_EQ(a.find_last_not_of(b), a.size()-1); in TYPED_TEST()
428 ASSERT_EQ(a.find_last_not_of(c), 22U); in TYPED_TEST()
429 ASSERT_EQ(b.find_last_not_of(a), Piece::npos); in TYPED_TEST()
430 ASSERT_EQ(b.find_last_not_of(b), Piece::npos); in TYPED_TEST()
431 ASSERT_EQ(f.find_last_not_of(i), 4U); in TYPED_TEST()
432 ASSERT_EQ(a.find_last_not_of(c, 24), 22U); in TYPED_TEST()
433 ASSERT_EQ(a.find_last_not_of(b, 3), 3U); in TYPED_TEST()
434 ASSERT_EQ(a.find_last_not_of(b, 2), Piece::npos); in TYPED_TEST()
436 ASSERT_EQ(f.find_last_not_of(d), f.size()-1); in TYPED_TEST()
437 ASSERT_EQ(f.find_last_not_of(e), f.size()-1); in TYPED_TEST()
438 ASSERT_EQ(f.find_last_not_of(d, 4), 4U); in TYPED_TEST()
439 ASSERT_EQ(f.find_last_not_of(e, 4), 4U); in TYPED_TEST()
440 ASSERT_EQ(d.find_last_not_of(d), Piece::npos); in TYPED_TEST()
441 ASSERT_EQ(d.find_last_not_of(e), Piece::npos); in TYPED_TEST()
442 ASSERT_EQ(e.find_last_not_of(d), Piece::npos); in TYPED_TEST()
443 ASSERT_EQ(e.find_last_not_of(e), Piece::npos); in TYPED_TEST()
444 ASSERT_EQ(d.find_last_not_of(f), Piece::npos); in TYPED_TEST()
445 ASSERT_EQ(e.find_last_not_of(f), Piece::npos); in TYPED_TEST()
446 ASSERT_EQ(d.find_last_not_of(d, 4), Piece::npos); in TYPED_TEST()
447 ASSERT_EQ(d.find_last_not_of(e, 4), Piece::npos); in TYPED_TEST()
448 ASSERT_EQ(e.find_last_not_of(d, 4), Piece::npos); in TYPED_TEST()
449 ASSERT_EQ(e.find_last_not_of(e, 4), Piece::npos); in TYPED_TEST()
450 ASSERT_EQ(d.find_last_not_of(f, 4), Piece::npos); in TYPED_TEST()
451 ASSERT_EQ(e.find_last_not_of(f, 4), Piece::npos); in TYPED_TEST()
453 ASSERT_EQ(h.find_last_not_of('x'), h.size() - 1); in TYPED_TEST()
454 ASSERT_EQ(h.find_last_not_of('='), Piece::npos); in TYPED_TEST()
455 ASSERT_EQ(b.find_last_not_of('c'), 1U); in TYPED_TEST()
456 ASSERT_EQ(h.find_last_not_of('x', 2), 2U); in TYPED_TEST()
457 ASSERT_EQ(h.find_last_not_of('=', 2), Piece::npos); in TYPED_TEST()
458 ASSERT_EQ(b.find_last_not_of('b', 1), 0U); in TYPED_TEST()
460 ASSERT_EQ(d.find_last_not_of('x'), Piece::npos); in TYPED_TEST()
461 ASSERT_EQ(e.find_last_not_of('x'), Piece::npos); in TYPED_TEST()
462 ASSERT_EQ(d.find_last_not_of('\0'), Piece::npos); in TYPED_TEST()
463 ASSERT_EQ(e.find_last_not_of('\0'), Piece::npos); in TYPED_TEST()
465 ASSERT_EQ(a.substr(0, 3), b); in TYPED_TEST()
466 ASSERT_EQ(a.substr(23), c); in TYPED_TEST()
467 ASSERT_EQ(a.substr(23, 3), c); in TYPED_TEST()
468 ASSERT_EQ(a.substr(23, 99), c); in TYPED_TEST()
469 ASSERT_EQ(a.substr(0), a); in TYPED_TEST()
470 ASSERT_EQ(a.substr(3, 2), TestFixture::as_string("de")); in TYPED_TEST()
472 ASSERT_EQ(a.substr(99, 2), e); in TYPED_TEST()
473 ASSERT_EQ(d.substr(99), e); in TYPED_TEST()
474 ASSERT_EQ(d.substr(0, 99), e); in TYPED_TEST()
475 ASSERT_EQ(d.substr(99, 99), e); in TYPED_TEST()
491 ASSERT_EQ(c, TestFixture::as_string("bar")); in TYPED_TEST()
494 ASSERT_EQ(c, a); in TYPED_TEST()
496 ASSERT_EQ(c, e); in TYPED_TEST()
501 ASSERT_EQ(c, TestFixture::as_string("foo")); in TYPED_TEST()
504 ASSERT_EQ(c, a); in TYPED_TEST()
506 ASSERT_EQ(c, e); in TYPED_TEST()
510 ASSERT_EQ(c, a); in TYPED_TEST()
512 ASSERT_EQ(c, a); in TYPED_TEST()
514 ASSERT_EQ(c, e); in TYPED_TEST()
520 ASSERT_EQ(c, s3); in TYPED_TEST()
526 ASSERT_EQ(c, s5); in TYPED_TEST()
542 ASSERT_EQ(s2.size(), 6U); in TEST()
543 ASSERT_EQ(s2, "foobar"); in TEST()
545 ASSERT_EQ(s2.size(), 7U); in TEST()
546 ASSERT_EQ(s1, s2); in TEST()
553 ASSERT_EQ(s2.size(), 6U); in TEST()
554 ASSERT_EQ(s2, "foobar"); in TEST()
556 ASSERT_EQ(s2.size(), 12U); in TEST()
557 ASSERT_EQ(s2, "foobarfoobar"); in TEST()
585 ASSERT_EQ(c, a); in TEST()
587 ASSERT_EQ(c, e); in TEST()
595 ASSERT_EQ(s.data(), nullptr); in TYPED_TEST()
596 ASSERT_EQ(s.size(), 0U); in TYPED_TEST()
599 ASSERT_EQ(s.data(), nullptr); in TYPED_TEST()
600 ASSERT_EQ(s.size(), 0U); in TYPED_TEST()
603 ASSERT_EQ(str.length(), 0U); in TYPED_TEST()
604 ASSERT_EQ(str, TypeParam()); in TYPED_TEST()
607 ASSERT_EQ(str.length(), 0U); in TYPED_TEST()
608 ASSERT_EQ(str, TypeParam()); in TYPED_TEST()
618 ASSERT_EQ(abc, BasicStringPiece<TypeParam>(alphabet)); in TYPED_TEST()
619 ASSERT_EQ(abc.compare(BasicStringPiece<TypeParam>(alphabet)), 0); in TYPED_TEST()
653 ASSERT_EQ(BasicStringPiece<TypeParam>(hello), hello); in TYPED_TEST()
654 ASSERT_EQ(hello.c_str(), BasicStringPiece<TypeParam>(hello)); in TYPED_TEST()
666 ASSERT_EQ(f[3], '\0'); in TEST()
667 ASSERT_EQ(f[5], static_cast<char16>(0xdffe)); in TEST()
669 ASSERT_EQ(f.size(), 6U); in TEST()
677 ASSERT_EQ( in TEST()
687 ASSERT_EQ(str, BasicStringPiece<TypeParam>(str)); in TYPED_TEST()
688 ASSERT_EQ(str, BasicStringPiece<TypeParam>(str.c_str())); in TYPED_TEST()
691 ASSERT_EQ( in TYPED_TEST()
696 ASSERT_EQ(empty, BasicStringPiece<TypeParam>(nullptr)); in TYPED_TEST()
702 ASSERT_EQ(empty, BasicStringPiece<TypeParam>()); in TYPED_TEST()
703 ASSERT_EQ(str, BasicStringPiece<TypeParam>(str.begin(), str.end())); in TYPED_TEST()
704 ASSERT_EQ(empty, BasicStringPiece<TypeParam>(str.begin(), str.begin())); in TYPED_TEST()
705 ASSERT_EQ(empty, BasicStringPiece<TypeParam>(empty)); in TYPED_TEST()
706 ASSERT_EQ(empty, BasicStringPiece<TypeParam>(empty.begin(), empty.end())); in TYPED_TEST()