aboutsummaryrefslogtreecommitdiff
path: root/src/pointer.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-06-12 15:57:54 +0200
committerJulien Dessaux2022-06-12 15:57:54 +0200
commitdc0952685eac9bb8ade8d4c12ebf802844a4869f (patch)
treeca7030ff13a9c24bf15280e50db62f6473c4feee /src/pointer.zig
parentPass the sanity test (diff)
downloadzigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.tar.gz
zigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.tar.bz2
zigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.zip
Implemented basic cli
Diffstat (limited to 'src/pointer.zig')
-rw-r--r--src/pointer.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pointer.zig b/src/pointer.zig
index 485a485..62f8dee 100644
--- a/src/pointer.zig
+++ b/src/pointer.zig
@@ -332,9 +332,8 @@ test "all" {
}
test "minimal" {
const minimal = std.io.fixedBufferStream("@").reader();
- var f = try field.Field.init(std.testing.allocator);
+ var f = try field.Field.init_from_reader(std.testing.allocator, minimal);
defer f.deinit();
- try f.load(minimal);
const argv = [_][]const u8{"minimal"};
var p = try Pointer.init(std.testing.allocator, f, null, argv[0..]);
defer p.deinit();
@@ -342,9 +341,8 @@ test "minimal" {
}
test "almost minimal" {
const minimal = std.io.fixedBufferStream(" @").reader();
- var f = try field.Field.init(std.testing.allocator);
+ var f = try field.Field.init_from_reader(std.testing.allocator, minimal);
defer f.deinit();
- try f.load(minimal);
const argv = [_][]const u8{"minimal"};
var p = try Pointer.init(std.testing.allocator, f, null, argv[0..]);
defer p.deinit();