File tree Expand file tree Collapse file tree 1 file changed +2
-36
lines changed Expand file tree Collapse file tree 1 file changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -869,41 +869,7 @@ final class WorkspaceTests: XCTestCase {
869869 let cCompletionResponse = try await project. testClient. send (
870870 CompletionRequest ( textDocument: TextDocumentIdentifier ( clibcUri) , position: clibcPositions [ " 2️⃣ " ] )
871871 )
872- XCTAssertEqual (
873- cCompletionResponse. items,
874- [
875- // rdar://73762053: This should also suggest clib_other
876- CompletionItem (
877- label: " clib_func " ,
878- kind: . text,
879- deprecated: true ,
880- sortText: " 41b99800clib_func " ,
881- filterText: " clib_func " ,
882- insertText: " clib_func " ,
883- insertTextFormat: . plain,
884- textEdit: . textEdit( TextEdit ( range: Range ( clibcPositions [ " 2️⃣ " ] ) , newText: " clib_func " ) )
885- ) ,
886- CompletionItem (
887- label: " include " ,
888- kind: . text,
889- deprecated: true ,
890- sortText: " 41d85b70include " ,
891- filterText: " include " ,
892- insertText: " include " ,
893- insertTextFormat: . plain,
894- textEdit: . textEdit( TextEdit ( range: Range ( clibcPositions [ " 2️⃣ " ] ) , newText: " include " ) )
895- ) ,
896- CompletionItem (
897- label: " void " ,
898- kind: . text,
899- deprecated: true ,
900- sortText: " 41e677bbvoid " ,
901- filterText: " void " ,
902- insertText: " void " ,
903- insertTextFormat: . plain,
904- textEdit: . textEdit( TextEdit ( range: Range ( clibcPositions [ " 2️⃣ " ] ) , newText: " void " ) )
905- ) ,
906- ]
907- )
872+ // rdar://73762053: This should also suggest clib_other
873+ XCTAssert ( cCompletionResponse. items. contains ( where: { $0. insertText == " clib_func " } ) )
908874 }
909875}
You can’t perform that action at this time.
0 commit comments