From 9f1cc762cddbc70e0a1017424f698a3d42fc243e Mon Sep 17 00:00:00 2001 From: Tarry Singh Date: Mon, 6 Jan 2025 17:49:50 +0000 Subject: [PATCH] Fix map tests in zml/meta. --- zml/meta.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zml/meta.zig b/zml/meta.zig index b5b5e8e..526a7be 100644 --- a/zml/meta.zig +++ b/zml/meta.zig @@ -120,11 +120,10 @@ test MapType { }; _ = 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 union_b = [_]A2B.map(UnionA){ - .{ .some = &[2]A{ .{ .a = 0 }, .{ .a = 1 } } }, - .{ .one = .{ .a = 2 } }, + .{ .some = &[2]B{ .{ .b = 0 }, .{ .b = 1 } } }, + .{ .one = .{ .b = 2 } }, .{ .maybe = null }, .{ .other = 43 }, };