| ... | @@ -2366,6 +2366,10 @@ test "Managed(u0)" { | ... | @@ -2366,6 +2366,10 @@ test "Managed(u0)" { |
| 2366 | count += 1; | 2366 | count += 1; |
| 2367 | } | 2367 | } |
| 2368 | try testing.expectEqual(count, 3); | 2368 | try testing.expectEqual(count, 3); |
| | 2369 | |
| | 2370 | const ownedSlice = try list.toOwnedSlice(); |
| | 2371 | defer a.free(ownedSlice); |
| | 2372 | try testing.expectEqualSlices(u0, ownedSlice, &.{ 0, 0, 0 }); |
| 2369 | } | 2373 | } |
| 2370 | | 2374 | |
| 2371 | test "Managed(?u32).pop()" { | 2375 | test "Managed(?u32).pop()" { |