commit e0129b387ff962c0f89d62c8ab0409145a19f453 (tree) parent 8957b2707464a4dc7f0572bfc08fd104408bc8a3 Author: Andrew Kelley <andrew@ziglang.org> Date: Sun, 23 Feb 2025 13:43:36 -0800 std.ArrayList: delete unit test tests should use the API, not only verify compilation succeeds. Diffstat:
| M | lib/std/array_list.zig | | | 7 | ------- |
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/lib/std/array_list.zig b/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(); -}