| ... | @@ -17,7 +17,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -17,7 +17,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 17 | | 17 | |
| 18 | inline for (info_a_s.fields, info_b_s.fields) |fa, fb| { | 18 | inline for (info_a_s.fields, info_b_s.fields) |fa, fb| { |
| 19 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); | 19 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 20 | try std.testing.expect(fa.type == fb.type); | 20 | try expectSimilarType(fa.type, fb.type); |
| 21 | try std.testing.expect(fa.alignment == fb.alignment); | 21 | try std.testing.expect(fa.alignment == fb.alignment); |
| 22 | try std.testing.expect(fa.is_comptime == fb.is_comptime); | 22 | try std.testing.expect(fa.is_comptime == fb.is_comptime); |
| 23 | } | 23 | } |
| ... | @@ -33,7 +33,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -33,7 +33,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 33 | | 33 | |
| 34 | inline for (info_a_u.fields, info_b_u.fields) |fa, fb| { | 34 | inline for (info_a_u.fields, info_b_u.fields) |fa, fb| { |
| 35 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); | 35 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 36 | try std.testing.expect(fa.type == fb.type); | 36 | try expectSimilarType(fa.type, fb.type); |
| 37 | try std.testing.expect(fa.alignment == fb.alignment); | 37 | try std.testing.expect(fa.alignment == fb.alignment); |
| 38 | } | 38 | } |
| 39 | | 39 | |
| ... | @@ -53,7 +53,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -53,7 +53,7 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 53 | | 53 | |
| 54 | return; | 54 | return; |
| 55 | } | 55 | } |
| 56 | @compileError("not implemented"); | 56 | try std.testing.expect(A == B); |
| 57 | } | 57 | } |
| 58 | | 58 | |
| 59 | test { | 59 | test { |