@@ -14,7 +14,7 @@ import XCTest
1414@available ( iOS 10 . 0 , * )
1515class ForeignMemberTest : XCTestCase {
1616
17- func testForeignMemberCoding ( in geoJSON: GeoJSON ) throws {
17+ func runForeignMemberCodingTest ( in geoJSON: GeoJSON , file : StaticString = #filePath , line : UInt = #line ) throws {
1818 let today = ISO8601DateFormatter ( ) . string ( from: Date ( ) )
1919
2020 var json = geoJSON. toJSON ( )
@@ -43,17 +43,17 @@ class ForeignMemberTest: XCTestCase {
4343
4444 let roundTrippedJSON = modifiedObject. toJSON ( )
4545
46- let when = try XCTUnwrap ( roundTrippedJSON [ " when " ] as? [ String : Any ? ] )
47- XCTAssertEqual ( when as NSDictionary , json [ " when " ] as? NSDictionary )
46+ let when = try XCTUnwrap ( roundTrippedJSON [ " when " ] as? [ String : Any ? ] , file : file , line : line )
47+ XCTAssertEqual ( when as NSDictionary , json [ " when " ] as? NSDictionary , file : file , line : line )
4848 }
4949
5050 func testForeignMemberCoding( ) throws {
5151 let nullIsland = GeoJSON . Position ( latitude: 0 , longitude: 0 )
52- try testForeignMemberCoding ( in: . init( geometry: . single( . point( nullIsland) ) ) )
53- try testForeignMemberCoding ( in: . init( geometry: . single( . lineString( . init( positions: [ nullIsland, nullIsland] ) ) ) ) )
54- try testForeignMemberCoding ( in: . init( geometry: . single( . polygon( . init( [ [ nullIsland, nullIsland] ] ) ) ) ) )
55- try testForeignMemberCoding ( in: . init( feature: . init( geometry: . single( . point( nullIsland) ) ) ) )
56- try testForeignMemberCoding ( in: . init( features: [ ] ) )
52+ try runForeignMemberCodingTest ( in: . init( geometry: . single( . point( nullIsland) ) ) )
53+ try runForeignMemberCodingTest ( in: . init( geometry: . single( . lineString( . init( positions: [ nullIsland, nullIsland] ) ) ) ) )
54+ try runForeignMemberCodingTest ( in: . init( geometry: . single( . polygon( . init( [ [ nullIsland, nullIsland] ] ) ) ) ) )
55+ try runForeignMemberCodingTest ( in: . init( feature: . init( geometry: . single( . point( nullIsland) ) ) ) )
56+ try runForeignMemberCodingTest ( in: . init( features: [ ] ) )
5757 }
5858
5959}
0 commit comments