commit 0a495aa56344d90d41cc1f77b3ede0be52c7cf99 (tree)
parent c19bc7ecb40d90e413f82879457c25e1a61c4df2
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Mon, 5 Nov 2018 11:37:48 -0500
update type info behavior test
it depends on the OS struct, which is probably not necessary
to accomplish the test's goal.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);
}