Started to work on the perl search request

This commit is contained in:
cdricms
2024-01-15 23:33:20 +01:00
parent d1cb8732b4
commit 98463dcb0a
10 changed files with 285 additions and 77 deletions

View File

@@ -14,4 +14,18 @@ final class swift_openfoodfacts_sdkTests: XCTestCase {
}
}
}
func testPerlSearch() async throws {
let off = OpenFoodFactsClient()
do {
// try await off.search(query: .init(searchTerms: "prince", format: .json))
let _ = try await off.search(query: .init(
searchTerms: "",
searchTags: [.init(tag: .brands, value: "mondelez"), .init(tag: .countries, value: "france")],
format: .json
))
} catch {
XCTFail("\(error)")
}
}
}