| ... | @@ -2250,10 +2250,3 @@ test "return OutOfMemory when capacity would exceed maximum usize integer value" | ... | @@ -2250,10 +2250,3 @@ test "return OutOfMemory when capacity would exceed maximum usize integer value" |
| 2250 | try testing.expectError(error.OutOfMemory, list.ensureUnusedCapacity(2)); | 2250 | try testing.expectError(error.OutOfMemory, list.ensureUnusedCapacity(2)); |
| 2251 | } | 2251 | } |
| 2252 | } | 2252 | } |
| 2253 | | | |
| 2254 | test "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 | } | | |