--- a/tests/test_streams.c Sun Dec 29 15:24:20 2024 +0100 +++ b/tests/test_streams.c Sun Dec 29 16:56:13 2024 +0100 @@ -45,6 +45,13 @@ size_t result = cx_stream_bncopy(&source, &target, (cx_read_func) cxBufferRead, (cx_write_func) cxBufferWrite, + tmp, 4, 0); + CX_TEST_ASSERT(result == 0); + CX_TEST_ASSERT(target.size == 0); + + result = cx_stream_bncopy(&source, &target, + (cx_read_func) cxBufferRead, + (cx_write_func) cxBufferWrite, tmp, 4, 20); CX_TEST_ASSERT(result == 20); CX_TEST_ASSERT(target.size == 20);