Skip to content

Commit

Permalink
Use path instead of path(), which required iOS 16+
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Dec 15, 2023
1 parent 3f9cb3b commit 739d7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/GoogleAITests/GenerativeModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ final class GenerativeModelTests: XCTestCase {
let fileURL = try XCTUnwrap(Bundle.module.url(forResource: name, withExtension: ext))
return { request in
let requestURL = try XCTUnwrap(request.url)
XCTAssertEqual(requestURL.path().occurrenceCount(of: "models/"), 1)
XCTAssertEqual(requestURL.path.occurrenceCount(of: "models/"), 1)
let response = try XCTUnwrap(HTTPURLResponse(
url: requestURL,
statusCode: statusCode,
Expand Down

0 comments on commit 739d7ca

Please sign in to comment.