 //
 
 import XCTest
+import MapboxDirections
 
 class OSRMTextInstructionsTests: XCTestCase {
     let instructions = OSRMTextInstructions(version: "v5")

        }
    }

    func getFixture(url: URL) -> Any {
        var json = Data()
        do {
            json = try Data(contentsOf: url, options: [])
        } catch {
            XCTAssert(false)
        }
        var routeJSON: Any!
        do {
            routeJSON = try JSONSerialization.jsonObject(with: json, options: [])
        } catch {
            XCTAssert(false)
        }
        return routeJSON
    }
}


                for fixture in typeDirectoryContents {
                    // parse fixture
                    let json = getFixture(url: fixture)
                    if json == nil {
                        XCTAssert(false, "invalid json")
                        return
                    }

                    let step = RouteStep(json: json?["step"] as! [String: Any])

                    // compile instruction
                    let instructions = self.instructions.compile(step: step)

                    // check generated instruction against fixture
                    // TODO: Remove unnecessary type filter
                    if (true || step.maneuverType == .turn) {
                        XCTAssertEqual(
                            json?["instruction"] as? String,
                            instructions,
                            fixture.path
                        )
