Lines Matching defs:Overlaps
41 bool Overlaps(const char* smallest, const char* largest) {
53 ASSERT_TRUE(! Overlaps("a", "z"));
54 ASSERT_TRUE(! Overlaps(NULL, "z"));
55 ASSERT_TRUE(! Overlaps("a", NULL));
56 ASSERT_TRUE(! Overlaps(NULL, NULL));
68 ASSERT_TRUE(! Overlaps("a", "b"));
69 ASSERT_TRUE(! Overlaps("z1", "z2"));
70 ASSERT_TRUE(Overlaps("a", "p"));
71 ASSERT_TRUE(Overlaps("a", "q"));
72 ASSERT_TRUE(Overlaps("a", "z"));
73 ASSERT_TRUE(Overlaps("p", "p1"));
74 ASSERT_TRUE(Overlaps("p", "q"));
75 ASSERT_TRUE(Overlaps("p", "z"));
76 ASSERT_TRUE(Overlaps("p1", "p2"));
77 ASSERT_TRUE(Overlaps("p1", "z"));
78 ASSERT_TRUE(Overlaps("q", "q"));
79 ASSERT_TRUE(Overlaps("q", "q1"));
81 ASSERT_TRUE(! Overlaps(NULL, "j"));
82 ASSERT_TRUE(! Overlaps("r", NULL));
83 ASSERT_TRUE(Overlaps(NULL, "p"));
84 ASSERT_TRUE(Overlaps(NULL, "p1"));
85 ASSERT_TRUE(Overlaps("q", NULL));
86 ASSERT_TRUE(Overlaps(NULL, NULL));
113 ASSERT_TRUE(! Overlaps("100", "149"));
114 ASSERT_TRUE(! Overlaps("251", "299"));
115 ASSERT_TRUE(! Overlaps("451", "500"));
116 ASSERT_TRUE(! Overlaps("351", "399"));
118 ASSERT_TRUE(Overlaps("100", "150"));
119 ASSERT_TRUE(Overlaps("100", "200"));
120 ASSERT_TRUE(Overlaps("100", "300"));
121 ASSERT_TRUE(Overlaps("100", "400"));
122 ASSERT_TRUE(Overlaps("100", "500"));
123 ASSERT_TRUE(Overlaps("375", "400"));
124 ASSERT_TRUE(Overlaps("450", "450"));
125 ASSERT_TRUE(Overlaps("450", "500"));
133 ASSERT_TRUE(! Overlaps(NULL, "149"));
134 ASSERT_TRUE(! Overlaps("451", NULL));
135 ASSERT_TRUE(Overlaps(NULL, NULL));
136 ASSERT_TRUE(Overlaps(NULL, "150"));
137 ASSERT_TRUE(Overlaps(NULL, "199"));
138 ASSERT_TRUE(Overlaps(NULL, "200"));
139 ASSERT_TRUE(Overlaps(NULL, "201"));
140 ASSERT_TRUE(Overlaps(NULL, "400"));
141 ASSERT_TRUE(Overlaps(NULL, "800"));
142 ASSERT_TRUE(Overlaps("100", NULL));
143 ASSERT_TRUE(Overlaps("200", NULL));
144 ASSERT_TRUE(Overlaps("449", NULL));
145 ASSERT_TRUE(Overlaps("450", NULL));
150 ASSERT_TRUE(! Overlaps("199", "199"));
151 ASSERT_TRUE(! Overlaps("201", "300"));
152 ASSERT_TRUE(Overlaps("200", "200"));
153 ASSERT_TRUE(Overlaps("190", "200"));
154 ASSERT_TRUE(Overlaps("200", "210"));
161 ASSERT_TRUE(! Overlaps("100", "149"));
162 ASSERT_TRUE(! Overlaps("601", "700"));
163 ASSERT_TRUE(Overlaps("100", "150"));
164 ASSERT_TRUE(Overlaps("100", "200"));
165 ASSERT_TRUE(Overlaps("100", "300"));
166 ASSERT_TRUE(Overlaps("100", "400"));
167 ASSERT_TRUE(Overlaps("100", "500"));
168 ASSERT_TRUE(Overlaps("375", "400"));
169 ASSERT_TRUE(Overlaps("450", "450"));
170 ASSERT_TRUE(Overlaps("450", "500"));
171 ASSERT_TRUE(Overlaps("450", "700"));
172 ASSERT_TRUE(Overlaps("600", "700"));