authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-15 03:12:45 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-15 03:12:45 -07:00
logdf1831b12208f511e1c20d7f8c91a5984f7d15df
tree663d46e53fcd0346e19675afb6a8655dd65a8751
parent27852b0c55eef47017a93a190fc04e4479012ba8

expectSimilarType: dont check decls


1 files changed, 0 insertions(+), 12 deletions(-)

src/expectSimilarType.zig-12
......@@ -15,10 +15,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void {
1515 try std.testing.expect(info_a_s.is_tuple == info_b_s.is_tuple);
1616 try std.testing.expect(info_a_s.backing_integer == info_b_s.backing_integer);
1717
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
2218 inline for (info_a_s.fields, info_b_s.fields) |fa, fb| {
2319 try std.testing.expect(std.mem.eql(u8, fa.name, fb.name));
2420 try std.testing.expect(fa.type == fb.type);
......@@ -35,10 +31,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void {
3531 try std.testing.expect(info_a_u.layout == info_b_u.layout);
3632 try expectSimilarType(info_a_u.tag_type.?, info_b_u.tag_type.?);
3733
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
4234 inline for (info_a_u.fields, info_b_u.fields) |fa, fb| {
4335 try std.testing.expect(std.mem.eql(u8, fa.name, fb.name));
4436 try std.testing.expect(fa.type == fb.type);
......@@ -54,10 +46,6 @@ pub fn expectSimilarType(comptime A: type, comptime B: type) !void {
5446 try std.testing.expect(info_a_e.tag_type == info_b_e.tag_type);
5547 try std.testing.expect(info_a_e.is_exhaustive == info_b_e.is_exhaustive);
5648
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
6149 inline for (info_a_e.fields, info_b_e.fields) |fa, fb| {
6250 try std.testing.expect(std.mem.eql(u8, fa.name, fb.name));
6351 try std.testing.expect(fa.value == fb.value);