diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index 29ed083..4830f45 100644 --- a/src/main.zig +++ b/src/main.zig @@ -36,8 +36,8 @@ test "sanity" { var stdout = std.ArrayList(u8).init(std.testing.allocator); defer stdout.deinit(); const expected = "0123456789"; - const args = [_][]const u8{"sanity"}; - const env = [_][*:0]const u8{"ENV=TEST"}; + const args = [_][]const u8{ "test", "sanity" }; + const env = [_][*:0]const u8{ "ENV=TEST", "FOO=BAR" }; var i = try interpreter.Interpreter.init(std.testing.allocator, file.reader(), testTimestamp, args[0..], env[0..]); defer i.deinit(); var ioContext = io.context(stdin.reader(), stdout.writer()); |