fn expectFmt(expected: []const u8, comptime template: []const u8, args: anytype) !void

This function is intended to be used only in tests. When the formatted result of the template and its arguments does not equal the expected text, it prints diagnostics to stderr to show how they are not equal, then returns an error.

Parameters

expected: []const u8,
template: []const u8,
args: anytype,