From 23a0e722279aa17fbfc89f7024e001c5aeec85a5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 4 Nov 2024 09:41:21 -0800 Subject: [PATCH] re-enable fixed test from upstream zig issue --- src/msg_send.zig | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/msg_send.zig b/src/msg_send.zig index e146993..9a8386f 100644 --- a/src/msg_send.zig +++ b/src/msg_send.zig @@ -216,15 +216,12 @@ fn MsgSendFn( } test { - // https://github.com/ziglang/zig/issues/12360 - if (true) return error.SkipZigTest; - const testing = std.testing; try testing.expectEqual(fn ( - u8, - objc.Sel, - ) callconv(.C) u64, MsgSendFn(u64, u8, @TypeOf(.{}))); - try testing.expectEqual(fn (u8, objc.Sel, u16, u32) callconv(.C) u64, MsgSendFn(u64, u8, @TypeOf(.{ + c.id, + c.SEL, + ) callconv(.C) u64, MsgSendFn(u64, c.id, @TypeOf(.{}))); + try testing.expectEqual(fn (c.id, c.SEL, u16, u32) callconv(.C) u64, MsgSendFn(u64, c.id, @TypeOf(.{ @as(u16, 0), @as(u32, 0), })));