by rstarast · 3y ago · 0 comments
pub fn expectEqual(expected: anytype, actual: @TypeOf(expected)) !void
to pub fn expectEqual(expected: @TypeOf(actual), actual: anytype) !void
What would the downsides be?https://github.com/ziglang/zig/issues/4437 is tracking the issue. I think std.testing is going to see some major changes, so it's possible this gets fixed. But going from the responses in that issue, I think that fix might be more of a side effect, since there doesn't seem to be too much sympathy for the issue as-is.