test/test_buffer.cpp

changeset 542
45bcfd152f85
parent 541
67e078518935
child 545
3700ac4bd9a3
--- a/test/test_buffer.cpp	Sun May 01 11:44:23 2022 +0200
+++ b/test/test_buffer.cpp	Sun May 01 11:46:54 2022 +0200
@@ -362,11 +362,11 @@
 }
 
 TEST_F(BufferWrite, MultibyteDiscard) {
-    const char *data = "tester";
+    const char *data = "testing";
     ASSERT_EQ(buf.capacity, 8);
     ASSERT_EQ(buf.size, 4);
     buf.pos = 3;
-    size_t written = cxBufferWrite(data, 2, 3, &buf);
+    size_t written = cxBufferWrite(data, 2, 4, &buf);
     // remember: whole elements are discarded if they do not fit
     EXPECT_EQ(written, 2);
     EXPECT_EQ(buf.size, 7);

mercurial