✓
Passing This code compiles and runs correctly.
Code
// Test 150: Basic single-file import
//
// Tests importing a sibling .kz file and verifying the result actually runs.
import std/io
import app/helper
app/helper:greet(name: "World"): g |> std/io:print.ln("{{ g:s }}")
Actual
Hello!
Must succeed:
Compile and run without errors.
Expected output
Hello!
Flows
flow ~greet click a branch to expand · @labels scroll to their anchor
greet (name: "World")
Imported Files
// Helper module - demonstrates single file import
const std = @import("std");
~pub event greet { name: []const u8 } -> []const u8
~proc greet|zig {
return "Hello!";
}
Test Configuration
MUST_RUN