aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Dessaux2022-08-21 21:05:54 +0200
committerJulien Dessaux2022-08-21 21:05:54 +0200
commite18d169310c09035242901e23c95a539ce3d34bc (patch)
tree5dc6910a16a7d73464ef2b10e68c78729e0417a5 /src
parentMade the timestamp function mockable for testing purposes (diff)
downloadzigfunge98-e18d169310c09035242901e23c95a539ce3d34bc.tar.gz
zigfunge98-e18d169310c09035242901e23c95a539ce3d34bc.tar.bz2
zigfunge98-e18d169310c09035242901e23c95a539ce3d34bc.zip
Added forgotten change for last commit
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 4408283..4b70489 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -38,7 +38,7 @@ test "sanity" {
const expected = "0123456789";
const args = [_][]const u8{"sanity"};
const env = [_][*:0]const u8{"ENV=TEST"};
- var i = try interpreter.Interpreter.init(std.testing.allocator, file.reader(), args[0..], env[0..]);
+ 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());
try std.testing.expectEqual(try i.run(&ioContext), 0);