Tweaked sanity test
This commit is contained in:
parent
128f1a74cb
commit
6ab8d706bb
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ test "sanity" {
|
||||||
var stdout = std.ArrayList(u8).init(std.testing.allocator);
|
var stdout = std.ArrayList(u8).init(std.testing.allocator);
|
||||||
defer stdout.deinit();
|
defer stdout.deinit();
|
||||||
const expected = "0123456789";
|
const expected = "0123456789";
|
||||||
const args = [_][]const u8{"sanity"};
|
const args = [_][]const u8{ "test", "sanity" };
|
||||||
const env = [_][*:0]const u8{"ENV=TEST"};
|
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..]);
|
var i = try interpreter.Interpreter.init(std.testing.allocator, file.reader(), testTimestamp, args[0..], env[0..]);
|
||||||
defer i.deinit();
|
defer i.deinit();
|
||||||
var ioContext = io.context(stdin.reader(), stdout.writer());
|
var ioContext = io.context(stdin.reader(), stdout.writer());
|
||||||
|
|
Loading…
Add table
Reference in a new issue