From d19ad26fb451c4bf10b20d90483ac424a4dd9a57 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Tue, 23 Jun 2026 19:19:22 +0200 Subject: Fix datum comment handling & tests. --- src/zisp/io/Decoder.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/zisp/io/Decoder.zig') diff --git a/src/zisp/io/Decoder.zig b/src/zisp/io/Decoder.zig index ac39a02..f9d99e0 100644 --- a/src/zisp/io/Decoder.zig +++ b/src/zisp/io/Decoder.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std"); const Alloc = std.mem.Allocator; @@ -16,8 +17,10 @@ pub fn init(alloc: Alloc) !Decoder { } pub fn decodeInPlace(d: *Decoder, v: Value) !Value { - std.debug.print("decode: ", .{}); - try io.printStdout(v); + if (!builtin.is_test) { + std.debug.print("decode: ", .{}); + io.printStdout(v) catch @panic("print error"); + } _ = d; return v; } -- cgit v1.2.3