This commit is contained in:
2026-01-19 05:43:29 +09:00
parent 40f41a4fd0
commit 0f6fddd794
36 changed files with 1724 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
const std = @import("std");
const print = std.debug.print;
// $ zig run hello-world.zig
pub fn main() void {
print("Hello, {s}!\n", .{"World"});
}
pub fn test_hello_world() []const u8 {
return "Hello, Test!\n";
}
test "hello-world" {
try std.testing.expectEqualStrings(test_hello_world(), "Hello, Test!\n");
}