Lines Matching refs:array
10 array_t* array = array_new(4); in TEST_F() local
11 ASSERT_TRUE(array != NULL); in TEST_F()
12 array_free(array); in TEST_F()
18 array_t* array = array_new(4); in TEST_F() local
19 EXPECT_DEATH(array_ptr(array), ""); in TEST_F()
20 array_free(array); in TEST_F()
24 array_t* array = array_new(4); in TEST_F() local
25 EXPECT_DEATH(array_at(array, 1), ""); in TEST_F()
26 array_free(array); in TEST_F()
30 array_t* array = array_new(sizeof(int)); in TEST_F() local
32 array_append_value(array, i * i); in TEST_F()
35 EXPECT_EQ(*(int*)array_at(array, i), i * i); in TEST_F()
37 array_free(array); in TEST_F()
42 array_t* array = array_new(sizeof(int)); in TEST_F() local
45 array_append_ptr(array, &items[i]); in TEST_F()
48 EXPECT_EQ(*(int*)array_at(array, i), i * i); in TEST_F()
50 array_free(array); in TEST_F()
59 array_t* array = array_new(128); in TEST_F() local
61 array_append_ptr(array, strings[i % 8]); in TEST_F()
64 EXPECT_TRUE(!memcmp(array_at(array, i), strings[i % 8], 128)); in TEST_F()
66 array_free(array); in TEST_F()