Skip to content

Commit d3a81ba

Browse files
committed
fixes
1 parent d68ea4a commit d3a81ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/std/mem.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ pub fn collapseRepeats(comptime T: type, slice: []T, elem: T) []T {
21512151
fn testCollapseRepeats(str: []const u8, elem: u8, expected: []const u8) !void {
21522152
const mutable = try std.testing.allocator.dupe(u8, str);
21532153
defer std.testing.allocator.free(mutable);
2154-
testing.expect(std.mem.eql(u8, collapseRepeats(u8, mutable, elem), expected));
2154+
try testing.expect(std.mem.eql(u8, collapseRepeats(u8, mutable, elem), expected));
21552155
}
21562156
test "collapseRepeats" {
21572157
try testCollapseRepeats("", '/', "");

lib/std/os/windows/test.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ fn testRemoveDotDirs(str: []const u8, expected: []const u8) !void {
1414
const mutable = try testing.allocator.dupe(u8, str);
1515
defer testing.allocator.free(mutable);
1616
const actual = mutable[0..try windows.removeDotDirsSanitized(u8, mutable)];
17-
testing.expect(mem.eql(u8, actual, expected));
17+
try testing.expect(mem.eql(u8, actual, expected));
1818
}
1919
fn testRemoveDotDirsError(err: anyerror, str: []const u8) !void {
2020
const mutable = try testing.allocator.dupe(u8, str);
2121
defer testing.allocator.free(mutable);
22-
testing.expectError(err, windows.removeDotDirsSanitized(u8, mutable));
22+
try testing.expectError(err, windows.removeDotDirsSanitized(u8, mutable));
2323
}
2424
test "removeDotDirs" {
2525
try testRemoveDotDirs("", "");

0 commit comments

Comments
 (0)