You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed all the unit test cases compilation issues
- implemented undo test case till 8 steps
// 1. login
// 2. Fetching Workspaces
// 3. Selecting one workspace (hardcoded to 380)
// 4. Fetching Longquests
// 5. Loading elements
// 6. Selecting one node (hardcoded to 301834)
// 7. validating is test tag exists
// 8. updating tag with test tags (Hardcoded tags)
osmConnection?.getOSMMapData(left:boundingCoordinates.left.coordinate.longitude , bottom:boundingCoordinates.bottom.coordinate.latitude , right:boundingCoordinates.right.coordinate.longitude , top:boundingCoordinates.top.coordinate.latitude ){ result in
275
-
switch result {
276
-
case.success(let mapData):
277
-
letresponse= mapData.elements.count
278
-
print(response)
279
-
case.failure(let error):
280
-
XCTFail("Failed while getting the map data details: \(error)")
281
-
}
282
-
expectation.fulfill()
283
-
}
284
-
waitForExpectations(timeout:15)
285
-
}
286
-
287
-
func testFetchMapData()throws{
288
-
letosmConnection=self.posmConnection
289
-
letexpectation=expectation(description:"Expect to get map data details from bbox")
290
-
letcentralLocation=CLLocation(latitude:37.7749, longitude:-122.4194) // San Francisco coords
osmConnection?.fetchMapData(left:boundingCoordinates.left.coordinate.longitude , bottom:boundingCoordinates.bottom.coordinate.latitude , right:boundingCoordinates.right.coordinate.longitude , top:boundingCoordinates.top.coordinate.latitude ){ result in
299
-
switch result {
300
-
case.success(let mapData):
263
+
// func testGetMapData() throws {
264
+
// let osmConnection = self.posmConnection
265
+
// let expectation = expectation(description: "Expect to get map data details from bbox")
266
+
// let centralLocation = CLLocation(latitude: 37.7749, longitude: -122.4194) // San Francisco coords
267
+
// let distance = 100
268
+
// let boundingCoordinates = centralLocation.boundingCoordinates(distance: CLLocationDistance(distance))
0 commit comments