all: update to std.builtin.Type.{Pointer,Array,StructField} field renames
This commit is contained in:
@@ -20,13 +20,13 @@ test "tuple declaration type info" {
|
||||
|
||||
try expectEqualStrings(info.fields[0].name, "0");
|
||||
try expect(info.fields[0].type == u32);
|
||||
try expect(@as(*const u32, @ptrCast(@alignCast(info.fields[0].default_value))).* == 1);
|
||||
try expect(info.fields[0].defaultValue() == 1);
|
||||
try expect(info.fields[0].is_comptime);
|
||||
try expect(info.fields[0].alignment == @alignOf(u32));
|
||||
|
||||
try expectEqualStrings(info.fields[1].name, "1");
|
||||
try expect(info.fields[1].type == []const u8);
|
||||
try expect(info.fields[1].default_value == null);
|
||||
try expect(info.fields[1].defaultValue() == null);
|
||||
try expect(!info.fields[1].is_comptime);
|
||||
try expect(info.fields[1].alignment == @alignOf([]const u8));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user