equal
deleted
inserted
replaced
147 STR_1KV, STR_2KV, |
147 STR_1KV, STR_2KV, |
148 STR_3KV, STR_4KV, STR_5KV, |
148 STR_3KV, STR_4KV, STR_5KV, |
149 STR_6KV, STR_7KV, STR_8KV, |
149 STR_6KV, STR_7KV, STR_8KV, |
150 STR_9KV, STR_10KV |
150 STR_9KV, STR_10KV |
151 }; |
151 }; |
152 /* Canonicalized strings */ |
|
153 const char *cstrs[] = { |
|
154 STR_1KV, STR_2KV, |
|
155 STR_3KV, STR_5KV, STR_5KV, |
|
156 STR_6KV, STR_8KV, STR_8KV, |
|
157 STR_9KV, STR_10KV |
|
158 }; |
|
159 int t = 0; |
152 int t = 0; |
160 |
153 |
161 const char *keys1[] = { KEY_1 }; |
154 const char *keys1[] = { KEY_1 }; |
162 const char *values1[] = { VALUE_1 }; |
155 const char *values1[] = { VALUE_1 }; |
163 name_create[t] = adr_name_create(DOMAIN, 1, keys1, values1); |
156 name_create[t] = adr_name_create(DOMAIN, 1, keys1, values1); |
361 } |
354 } |
362 |
355 |
363 /* |
356 /* |
364 * Test batch 5: Does adr_name_tostr function properly? |
357 * Test batch 5: Does adr_name_tostr function properly? |
365 */ |
358 */ |
366 if (comparestrs("adr_name_create", name_create, cstrs, strs)) |
359 if (comparestrs("adr_name_create", name_create, strs, strs)) |
367 fail = B_TRUE; |
360 fail = B_TRUE; |
368 if (comparestrs("adr_name_vcreate", name_vcreate, cstrs, strs)) |
361 if (comparestrs("adr_name_vcreate", name_vcreate, strs, strs)) |
369 fail = B_TRUE; |
362 fail = B_TRUE; |
370 if (comparestrs("adr_name_fromstr", name_fromstr, cstrs, strs)) |
363 if (comparestrs("adr_name_fromstr", name_fromstr, strs, strs)) |
371 fail = B_TRUE; |
364 fail = B_TRUE; |
372 |
365 |
373 /* |
366 /* |
374 * Test batch 6: Does compose function properly? |
367 * Test batch 6: Does compose function properly? |
375 */ |
368 */ |