update standalone and incremental tests to new API
This commit is contained in:
@@ -6,7 +6,9 @@ pub fn main() !void {
|
||||
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
|
||||
var allocator = gpa.allocator();
|
||||
|
||||
var output = std.io.getStdOut().writer();
|
||||
var stdout_buffer: [2000]u8 = undefined;
|
||||
var stdout_writer = std.fs.File.stdout().writerStreaming(&stdout_buffer);
|
||||
const output = &stdout_writer.interface;
|
||||
try output.writeAll(
|
||||
\\// This file was generated by _generate_JSONTestSuite.zig
|
||||
\\// These test cases are sourced from: https://github.com/nst/JSONTestSuite
|
||||
@@ -44,6 +46,8 @@ pub fn main() !void {
|
||||
try writeString(output, contents);
|
||||
try output.writeAll(");\n}\n");
|
||||
}
|
||||
|
||||
try output.flush();
|
||||
}
|
||||
|
||||
const i_structure_500_nested_arrays = "[" ** 500 ++ "]" ** 500;
|
||||
|
||||
Reference in New Issue
Block a user