update type info behavior test
it depends on the OS struct, which is probably not necessary to accomplish the test's goal.
This commit is contained in:
parent
c19bc7ecb4
commit
0a495aa563
|
@ -149,10 +149,10 @@ fn testEnum() void {
|
|||
const os_info = @typeInfo(Os);
|
||||
assert(TypeId(os_info) == TypeId.Enum);
|
||||
assert(os_info.Enum.layout == TypeInfo.ContainerLayout.Auto);
|
||||
assert(os_info.Enum.fields.len == 32);
|
||||
assert(os_info.Enum.fields.len == 33);
|
||||
assert(mem.eql(u8, os_info.Enum.fields[1].name, "ananas"));
|
||||
assert(os_info.Enum.fields[10].value == 10);
|
||||
assert(os_info.Enum.tag_type == u5);
|
||||
assert(os_info.Enum.tag_type == u6);
|
||||
assert(os_info.Enum.defs.len == 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user