Lines Matching refs:lookup

95         Lookup lookup;  in tests()  local
97 docheck(lookup, "not-yet-there", false); in tests()
98 docheck(lookup, "", false); in tests()
100 add(lookup, "apple", 123); in tests()
101 docheck(lookup, "apple", true, 5, 123); // full match in tests()
102 docheck(lookup, "banana", false); // no-match in tests()
103 docheck(lookup, "applexxx", true, 5, 123); // partial match in tests()
105 add(lookup, "applepie", 456); in tests()
106 docheck(lookup, "applepie", true, 8, 456); // full match in tests()
107 docheck(lookup, "banana", false); // no-match in tests()
108 docheck(lookup, "applepiexxx", true, 8, 456); // partial match in tests()
109 docheck(lookup, "apple", true, 5, 123); // full match in tests()
110 docheck(lookup, "applexxx", true, 5, 123); // partial match in tests()
111 docheck(lookup, "adam", false); // no-match in tests()
113 add(lookup, "a", 101); in tests()
114 docheck(lookup, "applepie", true, 8, 456); // full match in tests()
115 docheck(lookup, "banana", false); // no-match in tests()
116 docheck(lookup, "applepiexxx", true, 8, 456); // partial match in tests()
117 docheck(lookup, "apple", true, 5, 123); // full match in tests()
118 docheck(lookup, "applexxx", true, 5, 123); // partial match in tests()
119 docheck(lookup, "adam", true, 1, 101); // partial match in tests()
123 Lookup lookup; in tests() local
125 add(lookup, "applepie", 456); in tests()
126 add(lookup, "apple", 123); in tests()
128 docheck(lookup, "applepie", true, 8, 456); // full match in tests()
129 docheck(lookup, "banana", false); // no-match in tests()
130 docheck(lookup, "applepiexxx", true, 8, 456); // partial match in tests()
131 docheck(lookup, "apple", true, 5, 123); // full match in tests()
132 docheck(lookup, "applexxx", true, 5, 123); // partial match in tests()
135 Lookup lookup; in tests() local
137 add(lookup, "applepie", 456); in tests()
138 add(lookup, "apple", 123); in tests()
140 docheck(lookup, "applepie", true, 8, 456); // full match in tests()
141 docheck(lookup, "banana", false); // no-match in tests()
142 docheck(lookup, "applepiexxx", true, 8, 456); // partial match in tests()
143 docheck(lookup, "apple", true, 5, 123); // full match in tests()
144 docheck(lookup, "applexxx", true, 5, 123); // partial match in tests()
148 Lookup lookup; in tests() local
149 add(lookup, "pineapple", 1); in tests()
150 add(lookup, "orange", 2); in tests()
151 add(lookup, "banana", 3); in tests()
152 add(lookup, "applepie", 4); in tests()
153 add(lookup, "apple", 5); in tests()
155 docheck(lookup, "pineapple", true, 9, 1); in tests()
156 docheck(lookup, "orange", true, 6, 2); in tests()
157 docheck(lookup, "banana", true, 6, 3); in tests()
158 docheck(lookup, "apple", true, 5, 5); in tests()
159 docheck(lookup, "pizza", false); in tests()
160 docheck(lookup, "steak", false); in tests()
161 docheck(lookup, "applepie", true, 8, 4); in tests()
162 docheck(lookup, "bananarama", true, 6, 3); in tests()
163 docheck(lookup, "applet", true, 5, 5); in tests()
164 docheck(lookup, "applepi", true, 5, 5); in tests()
165 docheck(lookup, "appl", false); in tests()
167 docheck(lookup, "pineapplez", true, 9, 1); in tests()
168 docheck(lookup, "orangez", true, 6, 2); in tests()
169 docheck(lookup, "bananaz", true, 6, 3); in tests()
170 docheck(lookup, "applez", true, 5, 5); in tests()
171 docheck(lookup, "pizzaz", false); in tests()
172 docheck(lookup, "steakz", false); in tests()
173 docheck(lookup, "applepiez", true, 8, 4); in tests()
174 docheck(lookup, "bananaramaz", true, 6, 3); in tests()
175 docheck(lookup, "appletz", true, 5, 5); in tests()
176 docheck(lookup, "applepix", true, 5, 5); in tests()
180 WideLookup lookup; in tests() local
181 add(lookup, L"pineapple", 1); in tests()
182 add(lookup, L"orange", 2); in tests()
183 add(lookup, L"banana", 3); in tests()
184 add(lookup, L"applepie", 4); in tests()
185 add(lookup, L"apple", 5); in tests()
187 docheck(lookup, L"pineapple", true, 9, 1); in tests()
188 docheck(lookup, L"orange", true, 6, 2); in tests()
189 docheck(lookup, L"banana", true, 6, 3); in tests()
190 docheck(lookup, L"apple", true, 5, 5); in tests()
191 docheck(lookup, L"pizza", false); in tests()
192 docheck(lookup, L"steak", false); in tests()
193 docheck(lookup, L"applepie", true, 8, 4); in tests()
194 docheck(lookup, L"bananarama", true, 6, 3); in tests()
195 docheck(lookup, L"applet", true, 5, 5); in tests()
196 docheck(lookup, L"applepi", true, 5, 5); in tests()
197 docheck(lookup, L"appl", false); in tests()
199 docheck(lookup, L"pineapplez", true, 9, 1); in tests()
200 docheck(lookup, L"orangez", true, 6, 2); in tests()
201 docheck(lookup, L"bananaz", true, 6, 3); in tests()
202 docheck(lookup, L"applez", true, 5, 5); in tests()
203 docheck(lookup, L"pizzaz", false); in tests()
204 docheck(lookup, L"steakz", false); in tests()
205 docheck(lookup, L"applepiez", true, 8, 4); in tests()
206 docheck(lookup, L"bananaramaz", true, 6, 3); in tests()
207 docheck(lookup, L"appletz", true, 5, 5); in tests()
208 docheck(lookup, L"applepix", true, 5, 5); in tests()
212 Lookup lookup; in tests() local
213 add(lookup, "pineapple", 1); in tests()
214 add(lookup, "orange", 2); in tests()
215 add(lookup, "banana", 3); in tests()
216 add(lookup, "applepie", 4); in tests()
217 add(lookup, "apple", 5); in tests()
219 docheck(lookup, "pineapple", true, 9, 1); in tests()
220 docheck(lookup, "orange", true, 6, 2); in tests()
221 docheck(lookup, "banana", true, 6, 3); in tests()
222 docheck(lookup, "apple", true, 5, 5); in tests()
223 docheck(lookup, "applepie", true, 8, 4); in tests()
224 docheck(lookup, "bananarama", true, 6, 3); in tests()
225 docheck(lookup, "applet", true, 5, 5); in tests()
226 docheck(lookup, "applepi", true, 5, 5); in tests()
227 docheck(lookup, "appl", false); in tests()
229 remove(lookup, "banana"); in tests()
230 docheck(lookup, "pineapple", true, 9, 1); in tests()
231 docheck(lookup, "orange", true, 6, 2); in tests()
232 docheck(lookup, "banana", false); in tests()
233 docheck(lookup, "apple", true, 5, 5); in tests()
234 docheck(lookup, "applepie", true, 8, 4); in tests()
235 docheck(lookup, "bananarama", false); in tests()
236 docheck(lookup, "applet", true, 5, 5); in tests()
237 docheck(lookup, "applepi", true, 5, 5); in tests()
238 docheck(lookup, "appl", false); in tests()
240 remove(lookup, "apple"); in tests()
241 docheck(lookup, "pineapple", true, 9, 1); in tests()
242 docheck(lookup, "orange", true, 6, 2); in tests()
243 docheck(lookup, "apple", false); in tests()
244 docheck(lookup, "applepie", true, 8, 4); in tests()
245 docheck(lookup, "applet", false); in tests()
246 docheck(lookup, "applepi", false); in tests()
247 docheck(lookup, "appl", false); in tests()
249 remove(lookup, "orange"); in tests()
250 docheck(lookup, "pineapple", true, 9, 1); in tests()
251 docheck(lookup, "orange", false); in tests()
252 docheck(lookup, "applepie", true, 8, 4); in tests()
254 remove(lookup, "pineapple"); in tests()
255 docheck(lookup, "pineapple", false); in tests()
256 docheck(lookup, "orange", false); in tests()
257 docheck(lookup, "applepie", true, 8, 4); in tests()
259 remove(lookup, "applepie"); in tests()
260 docheck(lookup, "applepie", false); in tests()
310 Lookup lookup; in tests() local
311 add(lookup, "pineapple", 1); in tests()
312 add(lookup, "orange", 2); in tests()
313 add(lookup, "banana", 3); in tests()
314 add(lookup, "applepie", 4); in tests()
315 add(lookup, "apple", 5); in tests()
317 print(lookup); in tests()
321 Lookup lookup; in tests() local
324 add(lookup, "pineapple", 1); in tests()
325 add(lookup, "orange", 2); in tests()
326 add(lookup, "banana", 3); in tests()
327 add(lookup, "applepie", 4); in tests()
328 add(lookup, "apple", 5); in tests()
330 nc_check(lookup, "pineapple", true, 9, 1); in tests()
331 nc_check(lookup, "orange", true, 6, 2); in tests()
332 nc_check(lookup, "banana", true, 6, 3); in tests()
333 nc_check(lookup, "apple", true, 5, 5); in tests()
334 nc_check(lookup, "applepie", true, 8, 4); in tests()
336 nc_check(lookup, "PINEAPPLE", true, 9, 1); in tests()
337 nc_check(lookup, "ORANGE", true, 6, 2); in tests()
338 nc_check(lookup, "BANANA", true, 6, 3); in tests()
339 nc_check(lookup, "APPLE", true, 5, 5); in tests()
340 nc_check(lookup, "APPLEPIE", true, 8, 4); in tests()
342 nc_check(lookup, "pineApple", true, 9, 1); in tests()
343 nc_check(lookup, "orangE", true, 6, 2); in tests()
344 nc_check(lookup, "Banana", true, 6, 3); in tests()
345 nc_check(lookup, "aPPLe", true, 5, 5); in tests()
346 nc_check(lookup, "ApplePie", true, 8, 4); in tests()
348 print(lookup); in tests()