basic/bearer testing

This commit is contained in:
sjorsdonkers
2025-06-25 11:34:32 +02:00
parent 4560f31010
commit aea34264a9
3 changed files with 65 additions and 5 deletions

View File

@@ -66,7 +66,10 @@ pub fn expectEqual(expected: anytype, actual: anytype) !void {
if (@typeInfo(@TypeOf(expected)) == .null) {
return std.testing.expectEqual(null, actual);
}
return expectEqual(expected, actual.?);
if (actual) |_actual| {
return expectEqual(expected, _actual);
}
return std.testing.expectEqual(expected, null);
},
.@"union" => |union_info| {
if (union_info.tag_type == null) {