@@ -11,11 +11,6 @@ import SourceKittenFramework
11
11
import XCTest
12
12
13
13
class RequestTests : XCTestCase {
14
- func testProtocolVersion( ) {
15
- let version = Request . protocolVersion ( ) . send ( )
16
- compareJSONString ( withFixtureNamed: " ProtocolVersion " , jsonString: toJSON ( toNSDictionary ( version) ) )
17
- }
18
-
19
14
func testSwiftModuleGroups( ) {
20
15
let groups = Request . moduleGroups ( module: " Swift " , arguments: [ " -sdk " , sdkPath ( ) ] ) . send ( )
21
16
compareJSONString ( withFixtureNamed: " SwiftModuleGroups " , jsonString: toJSON ( toNSDictionary ( groups) ) )
@@ -29,7 +24,6 @@ class RequestTests: XCTestCase {
29
24
" _T021SourceKittenFramework7RequestOD " ,
30
25
" _T0s10DictionaryVySS9Structure22SourceKitRepresentable_pGD "
31
26
]
32
- #if swift(>=3.2)
33
27
let expectedResult : NSDictionary = [
34
28
" key.results " : [
35
29
[ " key.name " : " Swift.String " ] ,
@@ -39,17 +33,7 @@ class RequestTests: XCTestCase {
39
33
[ " key.name " : " Swift.Dictionary<Swift.String, Structure.SourceKitRepresentable> " ]
40
34
]
41
35
]
42
- #else
43
- let expectedResult : NSDictionary = [
44
- " key.results " : [
45
- [ " key.name " : " Swift.String " ] ,
46
- [ " key.name " : " __C.NSRange with unmangled suffix \" mD \" " ] ,
47
- [ " key.name " : " __ObjC.Process " ] ,
48
- [ " key.name " : " SourceKittenFramework.Request " ] ,
49
- [ " key.name " : " Swift.Dictionary<Swift.String, Structure.SourceKitRepresentable> " ]
50
- ]
51
- ]
52
- #endif
36
+
53
37
let result = Request . demangle ( names: mangledNames) . send ( )
54
38
XCTAssertEqual ( toNSDictionary ( result) , expectedResult, " should demange names. " )
55
39
}
@@ -58,7 +42,7 @@ class RequestTests: XCTestCase {
58
42
let result = Request . editorOpenInterface (
59
43
name: UUID ( ) . uuidString,
60
44
moduleName: " Swift " ,
61
- group: . name( " Assert " ) , // Choose a relative small group.
45
+ group: . name( " Assert " ) , // Choose a relatively small group.
62
46
synthesizedExtension: true ,
63
47
arguments: [ " -sdk " , sdkPath ( ) ]
64
48
) . send ( )
@@ -69,7 +53,6 @@ class RequestTests: XCTestCase {
69
53
extension RequestTests {
70
54
static var allTests : [ ( String , ( RequestTests ) -> ( ) throws -> Void ) ] {
71
55
return [
72
- ( " testProtocolVersion " , testProtocolVersion) ,
73
56
( " testSwiftModuleGroups " , testSwiftModuleGroups) ,
74
57
( " testEditorOpenInterface " , testEditorOpenInterface)
75
58
]
0 commit comments