1048 CX_TEST_ASSERT(buf.capacity == 8); |
1048 CX_TEST_ASSERT(buf.capacity == 8); |
1049 CX_TEST_ASSERT(0 == memcmp(buf.space, "preptestAA", 10)); |
1049 CX_TEST_ASSERT(0 == memcmp(buf.space, "preptestAA", 10)); |
1050 buf.flags |= CX_BUFFER_AUTO_EXTEND; |
1050 buf.flags |= CX_BUFFER_AUTO_EXTEND; |
1051 CX_TEST_ASSERT(0 == cxBufferTerminate(&buf)); |
1051 CX_TEST_ASSERT(0 == cxBufferTerminate(&buf)); |
1052 CX_TEST_ASSERT(buf.size == 8); |
1052 CX_TEST_ASSERT(buf.size == 8); |
1053 CX_TEST_ASSERT(buf.pos == 8); |
1053 CX_TEST_ASSERT(buf.pos == 9); |
1054 CX_TEST_ASSERT(buf.capacity > 8); |
1054 CX_TEST_ASSERT(buf.capacity > 8); |
1055 CX_TEST_ASSERT(0 == memcmp(buf.space, "preptest\0", 9)); |
1055 CX_TEST_ASSERT(0 == memcmp(buf.space, "preptest\0", 9)); |
1056 } |
1056 } |
1057 cxBufferDestroy(&buf); |
1057 cxBufferDestroy(&buf); |
1058 } |
1058 } |