Lines Matching refs:set2
268 UniqueSet<T>* set1, UniqueSet<T>* set2, bool expected) { in CHECK_SETS() argument
270 CHECK(set2->Equals(set2)); in CHECK_SETS()
271 CHECK(expected == set1->Equals(set2)); in CHECK_SETS()
272 CHECK(expected == set2->Equals(set1)); in CHECK_SETS()
284 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local
286 CHECK_SETS(set1, set2, true); in TEST()
290 CHECK_SETS(set1, set2, false); in TEST()
292 set2->Add(A, &zone); in TEST()
294 CHECK_SETS(set1, set2, true); in TEST()
298 CHECK_SETS(set1, set2, false); in TEST()
300 set2->Add(C, &zone); in TEST()
302 CHECK_SETS(set1, set2, false); in TEST()
306 CHECK_SETS(set1, set2, false); in TEST()
308 set2->Add(B, &zone); in TEST()
310 CHECK_SETS(set1, set2, true); in TEST()
322 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local
324 CHECK(set1->IsSubset(set2)); in TEST()
325 CHECK(set2->IsSubset(set1)); in TEST()
329 CHECK(!set1->IsSubset(set2)); in TEST()
330 CHECK(set2->IsSubset(set1)); in TEST()
332 set2->Add(B, &zone); in TEST()
334 CHECK(!set1->IsSubset(set2)); in TEST()
335 CHECK(!set2->IsSubset(set1)); in TEST()
337 set2->Add(A, &zone); in TEST()
339 CHECK(set1->IsSubset(set2)); in TEST()
340 CHECK(!set2->IsSubset(set1)); in TEST()
344 CHECK(set1->IsSubset(set2)); in TEST()
345 CHECK(set2->IsSubset(set1)); in TEST()
357 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local
363 set2->Add(A, &zone); in TEST()
364 set2->Add(B, &zone); in TEST()
365 set2->Add(C, &zone); in TEST()
366 set2->Add(D, &zone); in TEST()
367 set2->Add(E, &zone); in TEST()
368 set2->Add(F, &zone); in TEST()
370 CHECK(set1->IsSubset(set2)); in TEST()
371 CHECK(!set2->IsSubset(set1)); in TEST()
375 CHECK(!set1->IsSubset(set2)); in TEST()
376 CHECK(!set2->IsSubset(set1)); in TEST()
407 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST() local
409 CHECK(((i & j) == i) == set1->IsSubset(set2)); in TEST()
423 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local
426 CHECK(set1->IsSubset(set2)); in TEST()
427 CHECK(set2->IsSubset(set1)); in TEST()
431 result = set1->Intersect(set2, &zone); in TEST()
434 CHECK(set2->Equals(result)); in TEST()
436 set2->Add(A, &zone); in TEST()
438 result = set1->Intersect(set2, &zone); in TEST()
442 CHECK(set2->Equals(result)); in TEST()
444 set2->Add(B, &zone); in TEST()
445 set2->Add(C, &zone); in TEST()
447 result = set1->Intersect(set2, &zone); in TEST()
471 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST() local
473 UniqueSet<String>* result = set1->Intersect(set2, &zone); in TEST()
491 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local
494 CHECK(set1->IsSubset(set2)); in TEST()
495 CHECK(set2->IsSubset(set1)); in TEST()
499 result = set1->Union(set2, &zone); in TEST()
504 set2->Add(A, &zone); in TEST()
506 result = set1->Union(set2, &zone); in TEST()
510 CHECK(set2->Equals(result)); in TEST()
512 set2->Add(B, &zone); in TEST()
513 set2->Add(C, &zone); in TEST()
515 result = set1->Union(set2, &zone); in TEST()
518 CHECK(set2->Equals(result)); in TEST()
539 UniqueSet<String>* set2 = MakeSet(&zone, j, elements); in TEST() local
541 UniqueSet<String>* result = set1->Union(set2, &zone); in TEST()