test/array_tests.c

branch
feature/array
changeset 357
0f5732f0dc00
parent 356
77efe51c6c9a
child 366
41a7cef34c19
equal deleted inserted replaced
356:77efe51c6c9a 357:0f5732f0dc00
465 465
466 UCX_TEST(test_ucx_array_clone) { 466 UCX_TEST(test_ucx_array_clone) {
467 UcxArray array; 467 UcxArray array;
468 UcxArray copy; 468 UcxArray copy;
469 ucx_array_init(&array, 16, sizeof(int)); 469 ucx_array_init(&array, 16, sizeof(int));
470 ucx_array_init(&copy, 4, 2*sizeof(double));
470 int *elems; 471 int *elems;
471 472
472 array.size = 5; 473 array.size = 5;
473 elems = array.data; 474 elems = array.data;
474 elems[0] = 47; 475 elems[0] = 47;

mercurial