<commit_before>import Foundation
import XCTest
@testable import GeoSwift

class GeoSwiftTests: XCTestCase {
    func testCoordinates() {
        
        do {
            let prague = try GeoCoordinate2D(latitude: 50.0880400, longitude: 14.4207600)
            let brno = try GeoCoordinate2D(latitude: 49.195060, longitude: 16.606837)
            
            let distancePragueBrnoMeters = prague.distance(from: brno)
            XCTAssertEqual(round(distancePragueBrnoMeters), 186101)
            
            let distancePraguePragueMeters = prague.distance(from: prague)
            XCTAssertEqual(round(distancePraguePragueMeters), 0)
        } catch {
            XCTFail()
        }
        
        do {
            _ = try GeoCoordinate2D(latitude: 91, longitude: 14.4207600)
            _ = try GeoCoordinate2D(latitude: -91, longitude: 14.4207600)
            _ = try GeoCoordinate2D(latitude: 50.0880400, longitude: 181)
            _ = try GeoCoordinate2D(latitude: 50.0880400, longitude: -181)
            XCTFail()
        } catch {
            
        }
    }
<commit_msg>add a todo<commit_after>import Foundation
import XCTest
@testable import GeoSwift

class GeoSwiftTests: XCTestCase {
    func testCoordinates() {
        
        do {
            let prague = try GeoCoordinate2D(latitude: 50.0880400, longitude: 14.4207600)
            let brno = try GeoCoordinate2D(latitude: 49.195060, longitude: 16.606837)
            
            let distancePragueBrnoMeters = prague.distance(from: brno)
            XCTAssertEqual(round(distancePragueBrnoMeters), 186101)
            
            let distancePraguePragueMeters = prague.distance(from: prague)
            XCTAssertEqual(round(distancePraguePragueMeters), 0)
        } catch {
            XCTFail()
        }
        
        do {
            // TODO: Turn this into individual tests.
            _ = try GeoCoordinate2D(latitude: 91, longitude: 14.4207600)
            _ = try GeoCoordinate2D(latitude: -91, longitude: 14.4207600)
            _ = try GeoCoordinate2D(latitude: 50.0880400, longitude: 181)
            _ = try GeoCoordinate2D(latitude: 50.0880400, longitude: -181)
            XCTFail()
        } catch {
            
        }
    }

{'fraction_non_alphanumeric': 0.08075370121130551, 'fraction_numerical': 0.08344549125168237, 'mean_word_length': 2.017591339648173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6705092', 'n_tokens_mistral': 828, 'n_tokens_neox': 673, 'n_words': 136}