File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ final class SemanticTokensTests: XCTestCase {
159
159
}
160
160
161
161
func testIntArrayCoding( ) async throws {
162
- let tokens = [
162
+ let tokens = SyntaxHighlightingTokens ( tokens : [
163
163
Token (
164
164
start: Position ( line: 2 , utf16index: 3 ) ,
165
165
utf16length: 5 ,
@@ -171,7 +171,7 @@ final class SemanticTokensTests: XCTestCase {
171
171
kind: . interface,
172
172
modifiers: [ . deprecated, . definition]
173
173
) ,
174
- ]
174
+ ] )
175
175
176
176
let encoded = tokens. lspEncoded
177
177
XCTAssertEqual (
@@ -191,8 +191,8 @@ final class SemanticTokensTests: XCTestCase {
191
191
]
192
192
)
193
193
194
- let decoded = [ Token ] ( lspEncodedTokens: encoded)
195
- XCTAssertEqual ( decoded, tokens)
194
+ let decoded = SyntaxHighlightingTokens ( lspEncodedTokens: encoded)
195
+ XCTAssertEqual ( decoded. tokens , tokens . tokens)
196
196
}
197
197
198
198
func testRangeSplitting( ) async throws {
You can’t perform that action at this time.
0 commit comments