//
//  TriassicTests.swift
//  Triassic
//
//  Created by Kilian Költzsch on 29/11/2016.
//  Copyright © 2016 Triassic Park. All rights reserved.
//

import Foundation
import XCTest
@testable import Triassic

class TriassicTests: XCTestCase {
    func testExample() {
        XCTAssertEqual(Triassic.play(), "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<Trias xmlns:siri=\"http://www.siri.org.uk/siri\" version=\"1.0\" xmlns=\"trias\" />")

        let e = expectation(description: "Send a LocationInformationRequest")

        Triassic.locationInformation(query: "Helmhol") {
            e.fulfill()
        }

        waitForExpectations(timeout: 5) { error in
            if let error = error {
                XCTFail("\(error)")
            }
        }
    }
}

#if os(Linux)
extension TriassicTests {
    static var allTests: [(String, (TriassicTests) -> () throws -> Void)] {
        return [
            ("testExample", testExample),
        ]
    }
}
#endif

//
//  TriassicTests.swift
//  Triassic
//
//  Created by Kilian Költzsch on 29/11/2016.
//  Copyright © 2016 Triassic Park. All rights reserved.
//

import Foundation
import XCTest
@testable import Triassic

class TriassicTests: XCTestCase {
    func testExample() {
        XCTAssertEqual(Triassic.play(), "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<Trias xmlns:siri=\"http://www.siri.org.uk/siri\" version=\"1.0\" xmlns=\"trias\" />")

        let e = expectation(description: "Send a LocationInformationRequest")

        Triassic.locationInformation(query: "Helmhol") { error, response in
            e.fulfill()
        }

        waitForExpectations(timeout: 5) { error in
            if let error = error {
                XCTFail("\(error)")
            }
        }
    }
}

#if os(Linux)
extension TriassicTests {
    static var allTests: [(String, (TriassicTests) -> () throws -> Void)] {
        return [
            ("testExample", testExample),
        ]
    }
}
#endif

Fix for missing closure args
Fix for missing closure args
