mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 22:16:32 +00:00
fix[protocol]: test cpp
This commit is contained in:
1 parent
f49adffd29
commit
d575177a60
3 files changed
+4
-3
No files matched your search
@@ -113,8 +113,8 @@ namespace byte_buffer_test {
|
||||
|
||||
ByteBuffer buffer;
|
||||
assert(buffer.getCapacity() == DEFAULT_BUFFER_SIZE);
|
||||
assert(buffer.writerIndex() == 0);
|
||||
assert(buffer.readerIndex() == 0);
|
||||
assert(buffer.getWriterOffset() == 0);
|
||||
assert(buffer.getReaderOffset() == 0);
|
||||
|
||||
boolTest(buffer);
|
||||
byteTest(buffer);
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace serialization_test {
|
||||
obj = *((NormalObject *) read(newBuffer));
|
||||
|
||||
cout << "source size " << length << endl;
|
||||
cout << "target size " << newBuffer.writerIndex() << endl;
|
||||
cout << "target size " << newBuffer.getWriterOffset() << endl;
|
||||
cout << "compatible test" << endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -475,6 +475,7 @@ namespace zfoo {
|
||||
}
|
||||
|
||||
inline list<bool> readBoolList() {
|
||||
|
||||
int32_t length = readInt();
|
||||
list<bool> list;
|
||||
for (auto i = 0; i < length; i++) {
|
||||
|
||||
Reference in new issue
Block a user