Lines Matching refs:find
96 TEST(StringPieceTest, find) { in TEST() argument
98 EXPECT_EQ(1u, s.find(0, 'i')); in TEST()
99 EXPECT_EQ(1u, s.find(1, 'i')); in TEST()
100 EXPECT_EQ(4u, s.find(2, 'i')); in TEST()
101 EXPECT_EQ(4u, s.find(3, 'i')); in TEST()
102 EXPECT_EQ(4u, s.find(4, 'i')); in TEST()
103 EXPECT_EQ(7u, s.find(5, 'i')); in TEST()
104 EXPECT_EQ(7u, s.find(6, 'i')); in TEST()
105 EXPECT_EQ(7u, s.find(7, 'i')); in TEST()
106 EXPECT_EQ(10u, s.find(8, 'i')); in TEST()
107 EXPECT_EQ(10u, s.find(9, 'i')); in TEST()
108 EXPECT_EQ(10u, s.find(10, 'i')); in TEST()
109 EXPECT_EQ(11u, s.find(11, 'i')); in TEST()
111 EXPECT_EQ(11u, s.find(12, 'i')); // search index is out of bounds. in TEST()
116 EXPECT_EQ(0u, s.find(0, 'a')); in TEST()