Fix map tests in zml/meta.

This commit is contained in:
Tarry Singh 2025-01-06 17:49:50 +00:00
parent fbf1ecb8b7
commit 9f1cc762cd

View File

@ -120,11 +120,10 @@ test MapType {
}; };
_ = struct_b; _ = struct_b;
// TODO(corendos) fixme, union_b should contains Bs not As.
const UnionA = union { some: []const A, one: A, maybe: ?A, other: u32 }; const UnionA = union { some: []const A, one: A, maybe: ?A, other: u32 };
const union_b = [_]A2B.map(UnionA){ const union_b = [_]A2B.map(UnionA){
.{ .some = &[2]A{ .{ .a = 0 }, .{ .a = 1 } } }, .{ .some = &[2]B{ .{ .b = 0 }, .{ .b = 1 } } },
.{ .one = .{ .a = 2 } }, .{ .one = .{ .b = 2 } },
.{ .maybe = null }, .{ .maybe = null },
.{ .other = 43 }, .{ .other = 43 },
}; };