| ... | ... | @@ -15,10 +15,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 15 | 15 | try std.testing.expect(info_a_s.is_tuple == info_b_s.is_tuple); |
| 16 | 16 | try std.testing.expect(info_a_s.backing_integer == info_b_s.backing_integer); |
| 17 | 17 | |
| 18 | | for (info_a_s.decls, info_b_s.decls) |da, db| { |
| 19 | | try std.testing.expect(std.mem.eql(u8, da.name, db.name)); |
| 20 | | } |
| 21 | | |
| 22 | 18 | inline for (info_a_s.fields, info_b_s.fields) |fa, fb| { |
| 23 | 19 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 24 | 20 | try std.testing.expect(fa.type == fb.type); |
| ... | ... | @@ -35,10 +31,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 35 | 31 | try std.testing.expect(info_a_u.layout == info_b_u.layout); |
| 36 | 32 | try expectSimilarType(info_a_u.tag_type.?, info_b_u.tag_type.?); |
| 37 | 33 | |
| 38 | | for (info_a_u.decls, info_b_u.decls) |da, db| { |
| 39 | | try std.testing.expect(std.mem.eql(u8, da.name, db.name)); |
| 40 | | } |
| 41 | | |
| 42 | 34 | inline for (info_a_u.fields, info_b_u.fields) |fa, fb| { |
| 43 | 35 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 44 | 36 | try std.testing.expect(fa.type == fb.type); |
| ... | ... | @@ -54,10 +46,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 54 | 46 | try std.testing.expect(info_a_e.tag_type == info_b_e.tag_type); |
| 55 | 47 | try std.testing.expect(info_a_e.is_exhaustive == info_b_e.is_exhaustive); |
| 56 | 48 | |
| 57 | | for (info_a_e.decls, info_b_e.decls) |da, db| { |
| 58 | | try std.testing.expect(std.mem.eql(u8, da.name, db.name)); |
| 59 | | } |
| 60 | | |
| 61 | 49 | inline for (info_a_e.fields, info_b_e.fields) |fa, fb| { |
| 62 | 50 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 63 | 51 | try std.testing.expect(fa.value == fb.value); |