# HG changeset patch # User Mike Becker # Date 1658750505 -7200 # Node ID d756746ea94fb12dad76df44609959d0d3dc46cb # Parent 5d8ad7a0ff71f6b0276c57ad9ece982ff070edd5 fix putc tests to make more sense of the bitwise or diff -r 5d8ad7a0ff71 -r d756746ea94f test/test_buffer.cpp --- 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);