From 6ab8d706bb180a9a4fb4429572a9a819eb782add Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 25 Aug 2022 21:59:20 +0200 Subject: Tweaked sanity test --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.zig') 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()); -- cgit v1.2.3