From 75fc1506e59c1eaa52971d20df72c7cbeca5ac82 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 9 Jun 2022 23:17:53 +0200 Subject: Pass the sanity test --- src/defaultIO.zig | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/defaultIO.zig') diff --git a/src/defaultIO.zig b/src/defaultIO.zig index b87c2d6..9da4ad2 100644 --- a/src/defaultIO.zig +++ b/src/defaultIO.zig @@ -16,15 +16,13 @@ pub fn decimalInput() IOErrors!i64 { } pub fn characterOutput(v: i64) IOErrors!void { - // TODO - _ = v; - return error.NotImplemented; + std.debug.print("{c}", .{@intCast(u8, v)}); + return; } pub fn decimalOutput(v: i64) IOErrors!void { - // TODO - _ = v; - return error.NotImplemented; + std.debug.print("{d}", .{v}); + return; } test "all" { -- cgit v1.2.3