Lines Matching refs:buf

20   int buf[8];  in TEST()  local
22 buf[i] = 0; in TEST()
25 s1.insert(&buf[0]); in TEST()
26 s1.insert(&buf[1]); in TEST()
29 (s2 = s1).insert(&buf[2]); in TEST()
32 (s2 = s2).insert(&buf[3]); in TEST()
38 EXPECT_TRUE(s1.count(&buf[i])); in TEST()
40 EXPECT_FALSE(s1.count(&buf[i])); in TEST()
45 int buf[8]; in TEST() local
46 for(i=0; i<8; ++i) buf[i]=0; in TEST()
52 s.insert(&buf[0]); in TEST()
53 s.insert(&buf[1]); in TEST()
54 s.insert(&buf[2]); in TEST()
55 s.insert(&buf[3]); in TEST()
63 EXPECT_EQ(i<4?1:0,buf[i]); in TEST()
65 s.insert(&buf[4]); in TEST()
66 s.insert(&buf[5]); in TEST()
67 s.insert(&buf[6]); in TEST()
68 s.insert(&buf[7]); in TEST()
74 s.erase(&buf[4]); in TEST()
75 s.erase(&buf[5]); in TEST()
76 s.erase(&buf[6]); in TEST()
77 s.erase(&buf[7]); in TEST()
85 EXPECT_EQ(i<4?3:1,buf[i]); in TEST()
88 for(i=0; i<8; ++i) buf[i]=0; in TEST()
89 for(i=0; i<128; ++i) s.insert(&buf[i%8]); // test repeated entires in TEST()
94 EXPECT_EQ(1,buf[i]); in TEST()
98 int buf[8]; in TEST() local
100 buf[i] = 0; in TEST()
103 s1.insert(&buf[0]); in TEST()
104 s1.insert(&buf[1]); in TEST()
105 s1.insert(&buf[2]); in TEST()
106 s1.insert(&buf[3]); in TEST()
110 EXPECT_TRUE(s1.count(&buf[i])); in TEST()
112 EXPECT_FALSE(s1.count(&buf[i])); in TEST()
118 EXPECT_TRUE(s2.count(&buf[i])); in TEST()
120 EXPECT_FALSE(s2.count(&buf[i])); in TEST()
127 EXPECT_TRUE(s1.count(&buf[i])); in TEST()
129 EXPECT_FALSE(s1.count(&buf[i])); in TEST()
136 EXPECT_TRUE(s3.count(&buf[i])); in TEST()
138 EXPECT_FALSE(s3.count(&buf[i])); in TEST()
142 s3.insert(&buf[4]); in TEST()
143 s3.insert(&buf[5]); in TEST()
144 s3.insert(&buf[6]); in TEST()
145 s3.insert(&buf[7]); in TEST()
150 EXPECT_TRUE(s1.count(&buf[i])); in TEST()
157 EXPECT_TRUE(s3.count(&buf[i])); in TEST()
161 int buf[10]; in TEST() local
166 a.insert(&buf[0]); in TEST()
167 a.insert(&buf[1]); in TEST()
168 b.insert(&buf[2]); in TEST()
174 EXPECT_TRUE(a.count(&buf[2])); in TEST()
175 EXPECT_TRUE(b.count(&buf[0])); in TEST()
176 EXPECT_TRUE(b.count(&buf[1])); in TEST()
178 b.insert(&buf[3]); in TEST()
183 EXPECT_TRUE(a.count(&buf[0])); in TEST()
184 EXPECT_TRUE(a.count(&buf[1])); in TEST()
185 EXPECT_TRUE(a.count(&buf[3])); in TEST()
186 EXPECT_TRUE(b.count(&buf[2])); in TEST()
192 EXPECT_TRUE(a.count(&buf[2])); in TEST()
193 EXPECT_TRUE(b.count(&buf[0])); in TEST()
194 EXPECT_TRUE(b.count(&buf[1])); in TEST()
195 EXPECT_TRUE(b.count(&buf[3])); in TEST()
197 a.insert(&buf[4]); in TEST()
198 a.insert(&buf[5]); in TEST()
199 a.insert(&buf[6]); in TEST()
205 EXPECT_TRUE(b.count(&buf[2])); in TEST()
206 EXPECT_TRUE(b.count(&buf[4])); in TEST()
207 EXPECT_TRUE(b.count(&buf[5])); in TEST()
208 EXPECT_TRUE(b.count(&buf[6])); in TEST()
209 EXPECT_TRUE(a.count(&buf[0])); in TEST()
210 EXPECT_TRUE(a.count(&buf[1])); in TEST()
211 EXPECT_TRUE(a.count(&buf[3])); in TEST()