std.ArrayList: delete unit test

tests should use the API, not only verify compilation succeeds.
This commit is contained in:
Andrew Kelley 2025-02-23 13:43:36 -08:00
parent 8957b27074
commit e0129b387f

View File

@ -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();
}