mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std.ArrayList: delete unit test
tests should use the API, not only verify compilation succeeds.
This commit is contained in:
parent
8957b27074
commit
e0129b387f
@ -2250,10 +2250,3 @@ test "return OutOfMemory when capacity would exceed maximum usize integer value"
|
|||||||
try testing.expectError(error.OutOfMemory, list.ensureUnusedCapacity(2));
|
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();
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user