Fixed position context tests

This commit is contained in:
Alexandros Naskos 2020-06-27 15:34:28 +03:00
parent 9343ec311b
commit 6a830de271

View File

@ -33,7 +33,7 @@ fn testContext(comptime line: []const u8, comptime tag: var, comptime range: ?[]
const ctx = try analysis.documentPositionContext(allocator, doc, types.Position{
.line = 0,
.character = @intCast(i64, cursor_idx - 1),
.character = @intCast(i64, cursor_idx),
});
if (std.meta.activeTag(ctx) != tag) {