This looks like something that should be straight forward, but I have not seen how to conveniently check if two structs are structurally equal in tests.
What I have results to is comparing each fields individually. i.e:
std.testing.expectEqual(A.field1, B.field1);
std.testing.expectEqual(A.field2, B.field2);
...
etc.
Is there a less verbose way?