test/buffer_tests.c

changeset 95
ecfdc1c4a552
parent 83
3b552d7a9610
child 103
08018864fb91
equal deleted inserted replaced
94:57ea041df22f 95:ecfdc1c4a552
118 b->size = b->capacity; 118 b->size = b->capacity;
119 119
120 UCX_TEST_BEGIN 120 UCX_TEST_BEGIN
121 121
122 char rb[16]; 122 char rb[16];
123 for (int i = 0 ; i < 16 ; i++) { 123 for (size_t i = 0 ; i < 16 ; i++) {
124 UCX_TEST_ASSERT(b->pos == i, "pos wrong during read loop"); 124 UCX_TEST_ASSERT(b->pos == i, "pos wrong during read loop");
125 UCX_TEST_ASSERT(!ucx_buffer_eof(b), 125 UCX_TEST_ASSERT(!ucx_buffer_eof(b),
126 "EOF shall not be set during read loop"); 126 "EOF shall not be set during read loop");
127 rb[i] = ucx_buffer_getc(b); 127 rb[i] = ucx_buffer_getc(b);
128 } 128 }

mercurial