fn expectSerializeEqual(
expected: []const u8,
value: anytype,
options: SerializeOptions,
) !void expected: []const u8valueoptions: SerializeOptions123
124
125
126
127
128
129
130
131
132
133
134fn expectSerializeEqual(
expected: []const u8,
value: anytype,
options: SerializeOptions,
) !void {
var aw: Writer.Allocating = .init(std.testing.allocator);
const bw = &aw.writer;
defer aw.deinit();
try serialize(value, options, bw);
try std.testing.expectEqualStrings(expected, aw.written());
}