diff --git a/std/io.zig b/std/io.zig index 2afd54cadd0f251664dbbdd7c3e16f28cb723e11..f6e3790af6f6e777bbf52ca8667e2b31c401bfe3 100644 --- a/std/io.zig +++ b/std/io.zig @@ -408,7 +408,7 @@ test "io.BufferedInStream" { const stream = &buf_in_stream.stream; const res = try stream.readAllAlloc(allocator, str.len + 1); - debug.assertOrPanic(mem.eql(u8, str, res)); + testing.expectEqualSlices(u8, str, res); } /// Creates a stream which supports 'un-reading' data, so that it can be read again.