diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-11-05 11:37:48 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-11-05 11:37:48 -0500 |
| commit | 0a495aa56344d90d41cc1f77b3ede0be52c7cf99 (patch) | |
| tree | ce4e20f9c390cb8758da17f926e024ec65e1d7be | |
| parent | c19bc7ecb40d90e413f82879457c25e1a61c4df2 (diff) | |
| download | zig-0a495aa56344d90d41cc1f77b3ede0be52c7cf99.tar.gz zig-0a495aa56344d90d41cc1f77b3ede0be52c7cf99.zip | |
update type info behavior test
it depends on the OS struct, which is probably not necessary
to accomplish the test's goal.
| -rw-r--r-- | test/cases/type_info.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cases/type_info.zig b/test/cases/type_info.zig index 5cbd525252..9e377495b9 100644 --- a/test/cases/type_info.zig +++ b/test/cases/type_info.zig @@ -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); } |
