test/buffer_tests.c

changeset 185
a48428642b4e
parent 177
11ad03783baf
child 192
1e51558b9d09
equal deleted inserted replaced
184:5c0990c95f74 185:a48428642b4e
68 free(test); 68 free(test);
69 ucx_buffer_free(b); 69 ucx_buffer_free(b);
70 } 70 }
71 71
72 UCX_TEST(test_ucx_buffer_eof) { 72 UCX_TEST(test_ucx_buffer_eof) {
73 char *test = "0123456789ABCDEF"; 73 char *test = (char*)"0123456789ABCDEF";
74 UcxBuffer *b = ucx_buffer_new(test, 16, UCX_BUFFER_DEFAULT); 74 UcxBuffer *b = ucx_buffer_new(test, 16, UCX_BUFFER_DEFAULT);
75 UCX_TEST_BEGIN 75 UCX_TEST_BEGIN
76 b->pos = 9; b->size = 10; 76 b->pos = 9; b->size = 10;
77 UCX_TEST_ASSERT(!ucx_buffer_eof(b), "false positive"); 77 UCX_TEST_ASSERT(!ucx_buffer_eof(b), "false positive");
78 b->pos = 10; b->size = 10; 78 b->pos = 10; b->size = 10;

mercurial