blob: 8b0aa1cb289d41f170923bc21977e26a65612515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const std = @import("std");
const expect = std.testing.expect;
const Small2 = union(enum) {
a: i32,
b: bool,
c: u8,
};
test "@tagName" {
try expect(std.mem.eql(u8, @tagName(Small2.a), "a"));
}
// test
|