Lines Matching refs:lookup

80         Lookup lookup;  in tests()  local
82 docheck(lookup, ncomp, "not-yet-there", false); in tests()
83 docheck(lookup, ncomp, "", false); in tests()
85 add(lookup, "apple", 123); in tests()
86 docheck(lookup, ncomp, "apple", true, 5, 123); // full match in tests()
87 docheck(lookup, ncomp, "banana", false); // no-match in tests()
88 docheck(lookup, ncomp, "applexxx", true, 5, 123); // partial match in tests()
90 add(lookup, "applepie", 456); in tests()
91 docheck(lookup, ncomp, "applepie", true, 8, 456); // full match in tests()
92 docheck(lookup, ncomp, "banana", false); // no-match in tests()
93 docheck(lookup, ncomp, "applepiexxx", true, 8, 456); // partial match in tests()
94 docheck(lookup, ncomp, "apple", true, 5, 123); // full match in tests()
95 docheck(lookup, ncomp, "applexxx", true, 5, 123); // partial match in tests()
99 Lookup lookup; in tests() local
101 add(lookup, "applepie", 456); in tests()
102 add(lookup, "apple", 123); in tests()
104 docheck(lookup, ncomp, "applepie", true, 8, 456); // full match in tests()
105 docheck(lookup, ncomp, "banana", false); // no-match in tests()
106 docheck(lookup, ncomp, "applepiexxx", true, 8, 456); // partial match in tests()
107 docheck(lookup, ncomp, "apple", true, 5, 123); // full match in tests()
108 docheck(lookup, ncomp, "applexxx", true, 5, 123); // partial match in tests()
111 Lookup lookup; in tests() local
113 add(lookup, "applepie", 456); in tests()
114 add(lookup, "apple", 123); in tests()
116 docheck(lookup, ncomp, "applepie", true, 8, 456); // full match in tests()
117 docheck(lookup, ncomp, "banana", false); // no-match in tests()
118 docheck(lookup, ncomp, "applepiexxx", true, 8, 456); // partial match in tests()
119 docheck(lookup, ncomp, "apple", true, 5, 123); // full match in tests()
120 docheck(lookup, ncomp, "applexxx", true, 5, 123); // partial match in tests()
124 Lookup lookup; in tests() local
125 add(lookup, "pineapple", 1); in tests()
126 add(lookup, "orange", 2); in tests()
127 add(lookup, "banana", 3); in tests()
128 add(lookup, "applepie", 4); in tests()
129 add(lookup, "apple", 5); in tests()
131 docheck(lookup, ncomp, "pineapple", true, 9, 1); in tests()
132 docheck(lookup, ncomp, "orange", true, 6, 2); in tests()
133 docheck(lookup, ncomp, "banana", true, 6, 3); in tests()
134 docheck(lookup, ncomp, "apple", true, 5, 5); in tests()
135 docheck(lookup, ncomp, "pizza", false); in tests()
136 docheck(lookup, ncomp, "steak", false); in tests()
137 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
138 docheck(lookup, ncomp, "bananarama", true, 6, 3); in tests()
139 docheck(lookup, ncomp, "applet", true, 5, 5); in tests()
140 docheck(lookup, ncomp, "applepi", true, 5, 5); in tests()
141 docheck(lookup, ncomp, "appl", false); in tests()
143 docheck(lookup, ncomp, "pineapplez", true, 9, 1); in tests()
144 docheck(lookup, ncomp, "orangez", true, 6, 2); in tests()
145 docheck(lookup, ncomp, "bananaz", true, 6, 3); in tests()
146 docheck(lookup, ncomp, "applez", true, 5, 5); in tests()
147 docheck(lookup, ncomp, "pizzaz", false); in tests()
148 docheck(lookup, ncomp, "steakz", false); in tests()
149 docheck(lookup, ncomp, "applepiez", true, 8, 4); in tests()
150 docheck(lookup, ncomp, "bananaramaz", true, 6, 3); in tests()
151 docheck(lookup, ncomp, "appletz", true, 5, 5); in tests()
152 docheck(lookup, ncomp, "applepix", true, 5, 5); in tests()
156 WideLookup lookup; in tests() local
157 add(lookup, L"pineapple", 1); in tests()
158 add(lookup, L"orange", 2); in tests()
159 add(lookup, L"banana", 3); in tests()
160 add(lookup, L"applepie", 4); in tests()
161 add(lookup, L"apple", 5); in tests()
163 docheck(lookup, wcomp, L"pineapple", true, 9, 1); in tests()
164 docheck(lookup, wcomp, L"orange", true, 6, 2); in tests()
165 docheck(lookup, wcomp, L"banana", true, 6, 3); in tests()
166 docheck(lookup, wcomp, L"apple", true, 5, 5); in tests()
167 docheck(lookup, wcomp, L"pizza", false); in tests()
168 docheck(lookup, wcomp, L"steak", false); in tests()
169 docheck(lookup, wcomp, L"applepie", true, 8, 4); in tests()
170 docheck(lookup, wcomp, L"bananarama", true, 6, 3); in tests()
171 docheck(lookup, wcomp, L"applet", true, 5, 5); in tests()
172 docheck(lookup, wcomp, L"applepi", true, 5, 5); in tests()
173 docheck(lookup, wcomp, L"appl", false); in tests()
175 docheck(lookup, wcomp, L"pineapplez", true, 9, 1); in tests()
176 docheck(lookup, wcomp, L"orangez", true, 6, 2); in tests()
177 docheck(lookup, wcomp, L"bananaz", true, 6, 3); in tests()
178 docheck(lookup, wcomp, L"applez", true, 5, 5); in tests()
179 docheck(lookup, wcomp, L"pizzaz", false); in tests()
180 docheck(lookup, wcomp, L"steakz", false); in tests()
181 docheck(lookup, wcomp, L"applepiez", true, 8, 4); in tests()
182 docheck(lookup, wcomp, L"bananaramaz", true, 6, 3); in tests()
183 docheck(lookup, wcomp, L"appletz", true, 5, 5); in tests()
184 docheck(lookup, wcomp, L"applepix", true, 5, 5); in tests()
188 Lookup lookup; in tests() local
189 add(lookup, "pineapple", 1); in tests()
190 add(lookup, "orange", 2); in tests()
191 add(lookup, "banana", 3); in tests()
192 add(lookup, "applepie", 4); in tests()
193 add(lookup, "apple", 5); in tests()
195 docheck(lookup, ncomp, "pineapple", true, 9, 1); in tests()
196 docheck(lookup, ncomp, "orange", true, 6, 2); in tests()
197 docheck(lookup, ncomp, "banana", true, 6, 3); in tests()
198 docheck(lookup, ncomp, "apple", true, 5, 5); in tests()
199 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
200 docheck(lookup, ncomp, "bananarama", true, 6, 3); in tests()
201 docheck(lookup, ncomp, "applet", true, 5, 5); in tests()
202 docheck(lookup, ncomp, "applepi", true, 5, 5); in tests()
203 docheck(lookup, ncomp, "appl", false); in tests()
205 remove(lookup, "banana"); in tests()
206 docheck(lookup, ncomp, "pineapple", true, 9, 1); in tests()
207 docheck(lookup, ncomp, "orange", true, 6, 2); in tests()
208 docheck(lookup, ncomp, "banana", false); in tests()
209 docheck(lookup, ncomp, "apple", true, 5, 5); in tests()
210 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
211 docheck(lookup, ncomp, "bananarama", false); in tests()
212 docheck(lookup, ncomp, "applet", true, 5, 5); in tests()
213 docheck(lookup, ncomp, "applepi", true, 5, 5); in tests()
214 docheck(lookup, ncomp, "appl", false); in tests()
216 remove(lookup, "apple"); in tests()
217 docheck(lookup, ncomp, "pineapple", true, 9, 1); in tests()
218 docheck(lookup, ncomp, "orange", true, 6, 2); in tests()
219 docheck(lookup, ncomp, "apple", false); in tests()
220 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
221 docheck(lookup, ncomp, "applet", false); in tests()
222 docheck(lookup, ncomp, "applepi", false); in tests()
223 docheck(lookup, ncomp, "appl", false); in tests()
225 remove(lookup, "orange"); in tests()
226 docheck(lookup, ncomp, "pineapple", true, 9, 1); in tests()
227 docheck(lookup, ncomp, "orange", false); in tests()
228 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
230 remove(lookup, "pineapple"); in tests()
231 docheck(lookup, ncomp, "pineapple", false); in tests()
232 docheck(lookup, ncomp, "orange", false); in tests()
233 docheck(lookup, ncomp, "applepie", true, 8, 4); in tests()
235 remove(lookup, "applepie"); in tests()
236 docheck(lookup, ncomp, "applepie", false); in tests()
286 Lookup lookup; in tests() local
287 add(lookup, "pineapple", 1); in tests()
288 add(lookup, "orange", 2); in tests()
289 add(lookup, "banana", 3); in tests()
290 add(lookup, "applepie", 4); in tests()
291 add(lookup, "apple", 5); in tests()
293 print(lookup); in tests()
297 Lookup lookup; in tests() local
300 add(lookup, "pineapple", 1); in tests()
301 add(lookup, "orange", 2); in tests()
302 add(lookup, "banana", 3); in tests()
303 add(lookup, "applepie", 4); in tests()
304 add(lookup, "apple", 5); in tests()
306 docheck(lookup, nc_ncomp, "pineapple", true, 9, 1); in tests()
307 docheck(lookup, nc_ncomp, "orange", true, 6, 2); in tests()
308 docheck(lookup, nc_ncomp, "banana", true, 6, 3); in tests()
309 docheck(lookup, nc_ncomp, "apple", true, 5, 5); in tests()
310 docheck(lookup, nc_ncomp, "applepie", true, 8, 4); in tests()
312 docheck(lookup, nc_ncomp, "PINEAPPLE", true, 9, 1); in tests()
313 docheck(lookup, nc_ncomp, "ORANGE", true, 6, 2); in tests()
314 docheck(lookup, nc_ncomp, "BANANA", true, 6, 3); in tests()
315 docheck(lookup, nc_ncomp, "APPLE", true, 5, 5); in tests()
316 docheck(lookup, nc_ncomp, "APPLEPIE", true, 8, 4); in tests()
318 docheck(lookup, nc_ncomp, "pineApple", true, 9, 1); in tests()
319 docheck(lookup, nc_ncomp, "orangE", true, 6, 2); in tests()
320 docheck(lookup, nc_ncomp, "Banana", true, 6, 3); in tests()
321 docheck(lookup, nc_ncomp, "aPPLe", true, 5, 5); in tests()
322 docheck(lookup, nc_ncomp, "ApplePie", true, 8, 4); in tests()
324 print(lookup); in tests()