diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-10 18:54:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-10 18:54:24 -0400 |
| commit | cd26d3b0bb2b32f1daf1d3d46bb53731dd54afec (patch) | |
| tree | fa12591e49d082485f7e31a9df17daf37507c075 /lib/std/io/fixed_buffer_stream.zig | |
| parent | 18f1fef1426cb0405c733890b2e1d8d48627e4fe (diff) | |
| download | zig-cd26d3b0bb2b32f1daf1d3d46bb53731dd54afec.tar.gz zig-cd26d3b0bb2b32f1daf1d3d46bb53731dd54afec.zip | |
fix regressions caused earlier in this branch
Diffstat (limited to 'lib/std/io/fixed_buffer_stream.zig')
| -rw-r--r-- | lib/std/io/fixed_buffer_stream.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/io/fixed_buffer_stream.zig b/lib/std/io/fixed_buffer_stream.zig index 9cdad7dc57..0f2b542201 100644 --- a/lib/std/io/fixed_buffer_stream.zig +++ b/lib/std/io/fixed_buffer_stream.zig @@ -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])); } |
