refactor: run zig fmt

This commit is contained in:
CJ van den Berg 2024-11-17 20:47:25 +01:00
parent 3524f70db5
commit 351412231f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 8 additions and 8 deletions

View file

@ -349,11 +349,11 @@ test "get_from_pos" {
try std.testing.expectEqualDeep(result1[0..line0.len], line0);
const result2 = buffer.root.get_from_pos(.{ .row = 1, .col = 5 }, &result_buf, metrics());
try std.testing.expectEqualDeep(result2[0..line1.len - 5], line1[5..]);
try std.testing.expectEqualDeep(result2[0 .. line1.len - 5], line1[5..]);
_, _, const root = try buffer.root.insert_chars(1, 3, " ", buffer.allocator, metrics());
buffer.update(root);
const result3 = buffer.root.get_from_pos(.{ .row = 1, .col = 5 }, &result_buf, metrics());
try std.testing.expectEqualDeep(result3[0..line1.len - 4], line1[4..]);
try std.testing.expectEqualDeep(result3[0 .. line1.len - 4], line1[4..]);
}