aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-08-25 21:59:20 +0200
committerJulien Dessaux2022-08-25 21:59:20 +0200
commit6ab8d706bb180a9a4fb4429572a9a819eb782add (patch)
tree038ec88552b68c047e0067643da2c89c97ae61e7
parentAutomated the mycology test suite (diff)
downloadzigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.tar.gz
zigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.tar.bz2
zigfunge98-6ab8d706bb180a9a4fb4429572a9a819eb782add.zip
Tweaked sanity test
Diffstat (limited to '')
-rw-r--r--src/main.zig4
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());