Skip to content

Commit

Permalink
Only run testModerationsIterable on iOS 16+
Browse files Browse the repository at this point in the history
  • Loading branch information
cdillard committed Feb 22, 2024
1 parent 2164b90 commit a67a3ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/OpenAITests/OpenAITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ class OpenAITests: XCTestCase {
XCTAssertEqual(result, moderationsResult)
}

@available(iOS 16.0, *)
func testModerationsIterable() {
let categories = ModerationsResult.Moderation.Categories(harassment: false, harassmentThreatening: false, hate: false, hateThreatening: false, selfHarm: false, selfHarmIntent: false, selfHarmInstructions: false, sexual: false, sexualMinors: false, violence: false, violenceGraphic: false)
Mirror(reflecting: categories).children.enumerated().forEach { index, element in
Expand Down

0 comments on commit a67a3ff

Please sign in to comment.