Commit e0129b387f

Andrew Kelley <andrew@ziglang.org>
2025-02-23 22:43:36
std.ArrayList: delete unit test
tests should use the API, not only verify compilation succeeds.
1 parent 8957b27
Changed files (1)
lib/std/array_list.zig
@@ -2250,10 +2250,3 @@ test "return OutOfMemory when capacity would exceed maximum usize integer value"
         try testing.expectError(error.OutOfMemory, list.ensureUnusedCapacity(2));
     }
 }
-
-test "ArrayListAligned with non-native alignment compiles unusedCapabitySlice" {
-    var list = ArrayListAligned(u8, 4).init(testing.allocator);
-    defer list.deinit();
-    try list.appendNTimes(1, 4);
-    _ = list.unusedCapacitySlice();
-}