diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-09 10:45:24 +0200 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2026-06-09 10:45:24 +0200 |
| commit | 79469e08b9920fa0b10d5e6dcc3dffc30e96928b (patch) | |
| tree | 1d7f2d998626429790aa5037ad1d03e7efa6ab6d /src/test | |
| parent | 9c4dae501a64af864c3ceef3d185cd15f7757dcf (diff) | |
cleanup
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/parse.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/parse.zig b/src/test/parse.zig index bc665e9..ba29333 100644 --- a/src/test/parse.zig +++ b/src/test/parse.zig @@ -13,7 +13,7 @@ pub const Value = zisp.value.Value; fn parse(str: []const u8) Value { var fbs = std.Io.Reader.fixed(str); - return zisp.io.parse.fromReaderNoError(alloc, &fbs); + return zisp.io.parseNoError(alloc, &fbs); } test "parse empty" { @@ -117,7 +117,7 @@ test "print" { var buf: [32]u8 = undefined; var w = std.Io.Writer.fixed(&buf); const v = parse("#foo"); - try zisp.io.print.toWriter(&w, v); + try zisp.io.print(&w, v); try testing.expectEqualStrings("#foo", buf[0..w.end]); } @@ -125,7 +125,7 @@ test "print2" { var buf: [128]u8 = undefined; var w = std.Io.Writer.fixed(&buf); const v = parse("#{foo bar['x]}"); - try zisp.io.print.toWriter(&w, v); + try zisp.io.print(&w, v); try testing.expectEqualStrings( "(#HASH #BRACE foo (#JOIN bar #SQUARE (#QUOTE & x)))", buf[0..w.end], @@ -138,7 +138,7 @@ fn parseAndPrint(str: []const u8) !void { const w = &fw.interface; const v = parse(str); - try zisp.io.print.toWriter(w, v); + try zisp.io.print(w, v); try w.writeByte('\n'); try w.flush(); } @@ -174,7 +174,7 @@ fn parseBench(path: []const u8, iters: usize) !void { var file_reader = file.reader(io, &buf); const reader = &file_reader.interface; while (true) { - const v = zisp.io.parse.fromReaderNoError(alloc, reader); + const v = zisp.io.parseNoError(alloc, reader); if (value.eof.eq(v)) break; } } |
