915 cx_for_n (i, 5) cxListAdd(list, &fivenums[i]); |
915 cx_for_n (i, 5) cxListAdd(list, &fivenums[i]); |
916 verifyInsertViaIterator(list); |
916 verifyInsertViaIterator(list); |
917 } |
917 } |
918 |
918 |
919 TEST_F(ArrayList, InsertViaIterator) { |
919 TEST_F(ArrayList, InsertViaIterator) { |
920 ASSERT_EQ(1,0); // TODO: remove when implemented |
|
921 int fivenums[] = {0, 1, 2, 3, 4, 5}; |
920 int fivenums[] = {0, 1, 2, 3, 4, 5}; |
922 CxList *list = autofree(cxArrayListCreate(&testingAllocator, cx_cmp_int, sizeof(int), 4)); |
921 CxList *list = autofree(cxArrayListCreate(&testingAllocator, cx_cmp_int, sizeof(int), 4)); |
923 // TODO: replace with cxListAddArray |
922 // TODO: replace with cxListAddArray |
924 cx_for_n (i, 5) cxListAdd(list, &fivenums[i]); |
923 cx_for_n (i, 5) cxListAdd(list, &fivenums[i]); |
925 verifyInsertViaIterator(list); |
924 verifyInsertViaIterator(list); |