fix putc tests to make more sense of the bitwise or

Mon, 25 Jul 2022 14:01:45 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 25 Jul 2022 14:01:45 +0200
changeset 565
d756746ea94f
parent 564
5d8ad7a0ff71
child 566
d3100c987a39

fix putc tests to make more sense of the bitwise or

test/test_buffer.cpp file | annotate | diff | comparison | revisions
--- a/test/test_buffer.cpp	Wed Jun 08 21:38:45 2022 +0200
+++ b/test/test_buffer.cpp	Mon Jul 25 14:01:45 2022 +0200
@@ -437,7 +437,7 @@
     ASSERT_EQ(buf.capacity, 8);
     ASSERT_EQ(buf.pos, 4);
     ASSERT_EQ(buf.size, 4);
-    int c = cxBufferPut(&buf, 0x20 | 'a');
+    int c = cxBufferPut(&buf, 0x200 | 'a');
     EXPECT_EQ(c, 'a');
     EXPECT_EQ(buf.size, 5);
     EXPECT_EQ(buf.pos, 5);
@@ -449,7 +449,7 @@
     ASSERT_EQ(buf.capacity, 8);
     ASSERT_EQ(buf.size, 4);
     buf.pos = 8;
-    int c = cxBufferPut(&buf, 0x20 | 'a');
+    int c = cxBufferPut(&buf, 0x200 | 'a');
     EXPECT_EQ(c, EOF);
     EXPECT_EQ(buf.size, 4);
     EXPECT_EQ(buf.pos, 8);
@@ -462,7 +462,7 @@
     ASSERT_EQ(buf.capacity, 8);
     ASSERT_EQ(buf.size, 4);
     buf.pos = 8;
-    int c = cxBufferPut(&buf, 0x20 | 'a');
+    int c = cxBufferPut(&buf, 0x200 | 'a');
     EXPECT_EQ(c, 'a');
     EXPECT_EQ(buf.size, 9);
     EXPECT_EQ(buf.pos, 9);

mercurial