| ... | @@ -15,10 +15,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -15,10 +15,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 15 | try std.testing.expect(info_a_s.is_tuple == info_b_s.is_tuple); | 15 | try std.testing.expect(info_a_s.is_tuple == info_b_s.is_tuple); |
| 16 | try std.testing.expect(info_a_s.backing_integer == info_b_s.backing_integer); | 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 | 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| { |
| 23 | 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)); |
| 24 | try std.testing.expect(fa.type == fb.type); | 20 | try std.testing.expect(fa.type == fb.type); |
| ... | @@ -35,10 +31,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -35,10 +31,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 35 | try std.testing.expect(info_a_u.layout == info_b_u.layout); | 31 | try std.testing.expect(info_a_u.layout == info_b_u.layout); |
| 36 | try expectSimilarType(info_a_u.tag_type.?, info_b_u.tag_type.?); | 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 | 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| { |
| 43 | 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)); |
| 44 | try std.testing.expect(fa.type == fb.type); | 36 | try std.testing.expect(fa.type == fb.type); |
| ... | @@ -54,10 +46,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { | ... | @@ -54,10 +46,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void { |
| 54 | try std.testing.expect(info_a_e.tag_type == info_b_e.tag_type); | 46 | try std.testing.expect(info_a_e.tag_type == info_b_e.tag_type); |
| 55 | try std.testing.expect(info_a_e.is_exhaustive == info_b_e.is_exhaustive); | 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 | inline for (info_a_e.fields, info_b_e.fields) |fa, fb| { | 49 | inline for (info_a_e.fields, info_b_e.fields) |fa, fb| { |
| 62 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); | 50 | try std.testing.expect(std.mem.eql(u8, fa.name, fb.name)); |
| 63 | try std.testing.expect(fa.value == fb.value); | 51 | try std.testing.expect(fa.value == fb.value); |