Skip to content

Commit 5fdb07e

Browse files
author
Daniel Wirtz
committed
Verified pbjsi19 test case
1 parent 659cfd7 commit 5fdb07e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ var suite = {
728728

729729
"protobuf.js issue 19": function(test) {
730730
// test that this issue is fixed: https://github.com/dcodeIO/ProtoBuf.js/issues/19
731-
var bb = new ByteBuffer(17);
731+
var bb = new ByteBuffer(9); // Trigger resize to 18 in writeVarint64
732732
bb.writeVarint32(16);
733733
bb.writeVarint32(2);
734734
bb.writeVarint32(24);
@@ -737,7 +737,7 @@ var suite = {
737737
bb.writeVarint64(ByteBuffer.Long.fromString("1368057600000"));
738738
bb.writeVarint32(40);
739739
bb.writeVarint64(ByteBuffer.Long.fromString("1235455123"));
740-
test.equals(bb.toHex(17), ">10 02 18 00 20 80 B0 D9 B4 E8 27 28 93 99 8E CD 04<");
740+
test.equals(bb.toHex(18), ">10 02 18 00 20 80 B0 D9 B4 E8 27 28 93 99 8E CD 04<00 ");
741741
test.done();
742742
},
743743

0 commit comments

Comments
 (0)