Skip to content

Commit e586a5f

Browse files
Layer invalidation test change
This test wasn't correctly calculating the full invalidation. But, I guess this was affected by a tree-sitter runtime change, because it was only caught when updating to 0.25.x. The result now does make sense.
1 parent 84f6595 commit e586a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftTreeSitterLayerTests/LanguageLayerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ let c = "var c = 1"
283283
// resolve + highlight *just the third line* skipping the middle, which will result in an invalidation starting at the last node of the first injection and going all the way to the last node of the 3rd
284284
let target2 = IndexSet(integersIn: 40..<60)
285285
let resolve2 = try layerTree.resolveSublayers(with: content, in: target2)
286-
XCTAssertEqual(resolve2, IndexSet(17..<58))
286+
XCTAssertEqual(resolve2, IndexSet(9..<58))
287287

288288
let highlights2 = try layerTree.highlights(in: target2, provider: content.textProvider)
289289

0 commit comments

Comments
 (0)