diff --git a/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift b/Tests/OpenSwiftUITests/Core/Semantics/SemanticFeatureTests.swift index 1b6d64ae..c8ebcc14 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 smallest 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 max 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