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:
Andrew Kelley 2018-11-05 11:37:48 -05:00
parent c19bc7ecb4
commit 0a495aa563

View File

@ -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);
}