Here is how the type is defined:
pub const YAMLData = union(YAMLDataTag) {
scalar: union(YAMLScalarTag) {
integer: i64,
float: f64,
string: []u8,
boolean: bool,
null: u0,
},
sequence: std.ArrayList(YAMLData),
mapping: std.StringHashMap(YAMLData),
};
and im trying to test it by filling in the string field but i dont know how to get a []u8 at comptime:
test "parse scalar string" {
try testScalarParse("test", .{ .scalar = .{ .string = "test" } });
}