File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Tests/MapboxCoreNavigationTests Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ class CLLocationTests: TestCase {
92
92
speedAccuracy: speedAccuracy,
93
93
timestamp: timestamp)
94
94
}
95
-
95
+ #if compiler(>=5.5)
96
96
if #available( iOS 15 . 0 , * ) {
97
97
let sourceInfo = CLLocationSourceInformation (
98
98
softwareSimulationState: true ,
@@ -109,7 +109,8 @@ class CLLocationTests: TestCase {
109
109
timestamp: timestamp,
110
110
sourceInfo: sourceInfo)
111
111
}
112
-
112
+ #endif
113
+
113
114
let fixLocation = FixLocation ( location)
114
115
115
116
XCTAssertEqual ( fixLocation. coordinate. latitude, coordinate. latitude)
@@ -125,10 +126,11 @@ class CLLocationTests: TestCase {
125
126
XCTAssertEqual ( fixLocation. bearingAccuracy? . doubleValue, bearingAccuracy)
126
127
XCTAssertEqual ( fixLocation. speedAccuracy? . doubleValue, speedAccuracy)
127
128
}
128
-
129
+ #if compiler(>=5.5)
129
130
if #available( iOS 15 . 0 , * ) {
130
131
XCTAssertEqual ( fixLocation. provider, " sim:1,acc:0 " )
131
132
}
133
+ #endif
132
134
}
133
135
}
134
136
You can’t perform that action at this time.
0 commit comments