Lines Matching refs:list
11 * notice, this list of conditions and the following disclaimer.
13 * notice, this list of conditions and the following disclaimer in the
37 #include "list.h"
55 atf_list_t list;
57 RE(atf_list_init(&list));
58 ATF_REQUIRE_EQ(atf_list_size(&list), 0);
59 atf_list_fini(&list);
73 atf_list_t list;
78 RE(atf_list_init(&list));
79 RE(atf_list_append(&list, &i1, false));
80 RE(atf_list_append(&list, &i2, false));
81 RE(atf_list_append(&list, &i3, false));
83 ATF_CHECK_EQ(*(int *)atf_list_index(&list, 0), 1);
84 ATF_CHECK_EQ(*(int *)atf_list_index(&list, 1), 5);
85 ATF_CHECK_EQ(*(int *)atf_list_index(&list, 2), 9);
87 atf_list_fini(&list);
97 atf_list_t list;
102 RE(atf_list_init(&list));
103 RE(atf_list_append(&list, &i1, false));
104 RE(atf_list_append(&list, &i2, false));
105 RE(atf_list_append(&list, &i3, false));
107 ATF_CHECK_EQ(*(const int *)atf_list_index_c(&list, 0), 1);
108 ATF_CHECK_EQ(*(const int *)atf_list_index_c(&list, 1), 5);
109 ATF_CHECK_EQ(*(const int *)atf_list_index_c(&list, 2), 9);
111 atf_list_fini(&list);
117 atf_list_t list;
120 RE(atf_list_init(&list));
121 ATF_REQUIRE((array = atf_list_to_charpp(&list)) != NULL);
122 atf_list_fini(&list);
131 atf_list_t list;
138 RE(atf_list_init(&list));
139 RE(atf_list_append(&list, s1, false));
140 RE(atf_list_append(&list, s2, false));
141 RE(atf_list_append(&list, s3, false));
142 ATF_REQUIRE((array = atf_list_to_charpp(&list)) != NULL);
143 atf_list_fini(&list);
163 atf_list_t list;
167 RE(atf_list_init(&list));
169 ATF_REQUIRE_EQ(atf_list_size(&list), i);
170 RE(atf_list_append(&list, buf, false));
172 atf_list_fini(&list);
273 atf_list_t list;
278 printf("Iterating over empty list\n");
279 RE(atf_list_init(&list));
281 atf_list_for_each(iter, &list) {
286 atf_list_fini(&list);
289 printf("Iterating over list of %zd elements\n", size);
290 RE(atf_list_init(&list));
293 RE(atf_list_append(&list, &nums[i], false));
296 atf_list_for_each(iter, &list) {
301 atf_list_fini(&list);
312 atf_list_t list;
317 printf("Iterating over empty list\n");
318 RE(atf_list_init(&list));
320 atf_list_for_each_c(iter, &list) {
325 atf_list_fini(&list);
328 printf("Iterating over list of %zd elements\n", size);
329 RE(atf_list_init(&list));
332 RE(atf_list_append(&list, &nums[i], false));
335 atf_list_for_each_c(iter, &list) {
341 atf_list_fini(&list);