fn expectArrayFmt(expected: []const u8, comptime template: []const u8, comptime array_value: anytype) !void
Test formatting of arrays by value, by single-item pointer, and as a slice
expected: []const u8
template: []const u8
array_value
787 788 789 790 791 792 793
fn expectArrayFmt(expected: []const u8, comptime template: []const u8, comptime array_value: anytype) !void { try expectFmt(expected, template, .{array_value}); try expectFmt(expected, template, .{&array_value}); var runtime_zero: usize = 0; _ = &runtime_zero; try expectFmt(expected, template, .{array_value[runtime_zero..]}); }
Test formatting of arrays by value, by single-item pointer, and as a slice