fix regressions caused earlier in this branch

This commit is contained in:
Andrew Kelley
2020-03-10 18:54:24 -04:00
parent 18f1fef142
commit cd26d3b0bb
2 changed files with 10 additions and 4 deletions

View File

@@ -164,6 +164,5 @@ test "FixedBufferStream input" {
testing.expect(read == 3);
testing.expect(mem.eql(u8, dest[0..3], bytes[4..7]));
read = try fbs.inStream().read(dest[0..4]);
testing.expect(read == 0);
testing.expectError(error.EndOfStream, fbs.inStream().read(dest[0..4]));
}