CalculateDistance計算經(jīng)緯度點物理距離
計算兩個經(jīng)緯度點之間的物理距離。
示例代碼:
#import <XCTest/XCTest.h>
@interface CalculateDistanceTests : XCTestCase
@end
@implementation CalculateDistanceTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}
@end評論
圖片
表情
