# fix std.testing.expectEqual for comptime-only union · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/17ce3e5a17e617bd83d1cf2f5f464fb098b92ec7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 17ce3e5a17e617bd83d1cf2f5f464fb098b92ec7

Requested commit: 17ce3e5a17e617bd83d1cf2f5f464fb098b92ec7

Commit: 17ce3e5a17e617bd83d1cf2f5f464fb098b92ec7

Tree: e8d7beee0a50b2c68b374627635ee89e92e6a265

Author: rohlem

Committer: rohlem

## Message

```
fix std.testing.expectEqual for comptime-only union

switch from `inline for` with `std.mem.eql`
to `inline else` and tag comparison;
expectEqualDeep(Inner) was already doing this.

add a previously-failing test case.

```

## Parents

- [04e08ea883f94d2de7a91daee72ccc9613a18a43](https://git.cafe/gitcafe/zig/commit/04e08ea883f94d2de7a91daee72ccc9613a18a43?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/17ce3e5a17e617bd83d1cf2f5f464fb098b92ec7?format=markdown)
