Commit 0a495aa563

Andrew Kelley <superjoe30@gmail.com>
2018-11-05 17:37:48
update type info behavior test
it depends on the OS struct, which is probably not necessary to accomplish the test's goal.
1 parent c19bc7e
Changed files (1)
test
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);
 }