diff options
Diffstat (limited to 'core/jj.zig')
| -rw-r--r-- | core/jj.zig | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/jj.zig b/core/jj.zig index 64a27ead..a0dfec10 100644 --- a/core/jj.zig +++ b/core/jj.zig @@ -1842,9 +1842,9 @@ test "a client replays the open of a file at a revision and ends equal" { var repo = try Repo.init(gpa) orelse return error.SkipZigTest; defer repo.deinit(gpa); const R = pardes.replica; - const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(gpa, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(gpa, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}@@-:2", .{repo.file}) })); @@ -1950,9 +1950,9 @@ test "a client replays Changes from what the session's jj answered and ends equa var repo = try Repo.init(gpa) orelse return error.SkipZigTest; defer repo.deinit(gpa); const R = pardes.replica; - const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(gpa, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(gpa, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}@@-", .{repo.file}) })); @@ -1990,10 +1990,10 @@ const WorkerJj = struct { fn init(repo: *const Repo, at: []const u8) !WorkerJj { const shell = try testing.allocator.create(Shell); shell.* = .{ .q = .{ .gpa = testing.allocator, .lsp_allocator = testing.allocator, .io = testing.io } }; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{ .vtable = &vtable, .ctx = shell }, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{ .vtable = &vtable, .ctx = shell }); errdefer a.deinit(); shell.core = a.core; - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}{s}", .{ repo.file, at }) })); const id = a.core.view().active; @@ -2325,9 +2325,9 @@ test "ghost rows ride with the text: a line deleted above moves them up, a line var repo = try Ghosts.repo() orelse return error.SkipZigTest; defer repo.deinit(testing.allocator); const R = pardes.replica; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}", .{repo.file}) })); @@ -2507,9 +2507,9 @@ test "the lanes ride with the text: a line typed in a nested block is nobody's, var repo = try Stack.repo(null) orelse return error.SkipZigTest; defer repo.deinit(testing.allocator); const R = pardes.replica; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); defer r.deinit(); const Keys = struct { fn send(au: *R.Authority, re: *R.Replica, keys: []const u8) !void { @@ -2654,9 +2654,9 @@ test "Churn's counts ride with the text, and a client replays them equal" { var repo = try Churned.repo() orelse return error.SkipZigTest; defer repo.deinit(testing.allocator); const R = pardes.replica; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}", .{repo.file}) })); |
