diff options
author | Julien Dessaux | 2022-08-25 21:59:20 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-08-25 21:59:20 +0200 |
commit | 6ab8d706bb180a9a4fb4429572a9a819eb782add (patch) | |
tree | 038ec88552b68c047e0067643da2c89c97ae61e7 /src | |
parent | Automated the mycology test suite (diff) | |
download | zigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.tar.gz zigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.tar.bz2 zigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.zip |
Tweaked sanity test
Diffstat (limited to 'src')
-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()); |