diff options
author | Julien Dessaux | 2022-06-12 15:57:54 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-06-12 15:57:54 +0200 |
commit | dc0952685eac9bb8ade8d4c12ebf802844a4869f (patch) | |
tree | ca7030ff13a9c24bf15280e50db62f6473c4feee /src/pointer.zig | |
parent | Pass the sanity test (diff) | |
download | zigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.tar.gz zigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.tar.bz2 zigfunge98-dc0952685eac9bb8ade8d4c12ebf802844a4869f.zip |
Implemented basic cli
Diffstat (limited to '')
-rw-r--r-- | src/pointer.zig | 6 |
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(); |