Commit 25e6f67a authored by Marc Gravell's avatar Marc Gravell

fix off-by-one in the test

parent cc7c60f0
...@@ -56,7 +56,8 @@ public void ParseAsLotsOfChunks(string ascii, int expected) ...@@ -56,7 +56,8 @@ public void ParseAsLotsOfChunks(string ascii, int expected)
} }
tail = next; tail = next;
} }
var buffer = new ReadOnlySequence<byte>(chain, 0, tail, 0); var buffer = new ReadOnlySequence<byte>(chain, 0, tail, 1);
Assert.Equal(bytes.Length, buffer.Length);
ProcessMessages(buffer, expected); ProcessMessages(buffer, expected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment