diff --git a/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift b/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift index 1b6d64a..e093f11 100644 --- a/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift +++ b/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift @@ -6,14 +6,17 @@ import Testing struct SemanticFeatureTests { + /// Represent a minimum version struct SemanticFeature1: SemanticFeature { static var introduced: Semantics { .init(value: 0x0000_0000) } } + /// Represent a middle version struct SemanticFeature2: SemanticFeature { static var introduced: Semantics { .init(value: 0xFFFF_0000) } } + /// Represent a maximum version struct SemanticFeature3: SemanticFeature { static var introduced: Semantics { .init(value: 0xFFFF_FFFF) } } @@ -21,9 +24,15 @@ struct SemanticFeatureTests { @Test func defaultEnable() async throws { #expect(Semantics.forced == nil) + #if canImport(Darwin) #expect(SemanticFeature1.isEnable == true) #expect(SemanticFeature2.isEnable == false) #expect(SemanticFeature3.isEnable == false) + #else + #expect(SemanticFeature1.isEnable == true) + #expect(SemanticFeature2.isEnable == true) + #expect(SemanticFeature3.isEnable == true) + #endif } @Test