Skip to content

Commit 271bc2c

Browse files
committed
std.ArrayList: delete unit test
tests should use the API, not only verify compilation succeeds.
1 parent c45dcd0 commit 271bc2c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/std/array_list.zig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,10 +2250,3 @@ test "return OutOfMemory when capacity would exceed maximum usize integer value"
22502250
try testing.expectError(error.OutOfMemory, list.ensureUnusedCapacity(2));
22512251
}
22522252
}
2253-
2254-
test "ArrayListAligned with non-native alignment compiles unusedCapabitySlice" {
2255-
var list = ArrayListAligned(u8, 4).init(testing.allocator);
2256-
defer list.deinit();
2257-
try list.appendNTimes(1, 4);
2258-
_ = list.unusedCapacitySlice();
2259-
}

0 commit comments

Comments
 (0)