authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-23 13:43:36-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-26 11:42:03-08:00
loge0129b387ff962c0f89d62c8ab0409145a19f453
tree00da13240b731693670ed4cfe1698649c27047de
parent8957b2707464a4dc7f0572bfc08fd104408bc8a3

std.ArrayList: delete unit test

tests should use the API, not only verify compilation succeeds.

1 files changed, 0 insertions(+), 7 deletions(-)

lib/std/array_list.zig-7
......@@ -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
2254test "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}