fn expectSerializeEqual( expected: []const u8, value: anytype, options: SerializeOptions, ) !void
fn 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()); }