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 {...@@ -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);
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
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.?);
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
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);
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
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);