basic/bearer testing

This commit is contained in:
sjorsdonkers committed 2025-06-25 12:04:38 +02:00
1 parent 4560f31010
commit aea34264a9
3 files changed
+65 -5

No files matched your search

+4 -1
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) {