diff --git a/Tests/CorePromise/ThenableTests.swift b/Tests/CorePromise/ThenableTests.swift index 4063a87f6..a75dc89bb 100644 --- a/Tests/CorePromise/ThenableTests.swift +++ b/Tests/CorePromise/ThenableTests.swift @@ -43,7 +43,7 @@ class ThenableTests: XCTestCase { wait(for: [ex], timeout: 10) } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func testMapByKeyPath() { let ex = expectation(description: "") Promise.value(Person(name: "Max")).map(\.name).done { @@ -110,7 +110,7 @@ class ThenableTests: XCTestCase { wait(for: [ex], timeout: 10) } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func testCompactMapByKeyPath() { let ex = expectation(description: "") Promise.value(Person(name: "Roman", age: 26)).compactMap(\.age).done { @@ -132,7 +132,7 @@ class ThenableTests: XCTestCase { wait(for: [ex], timeout: 10) } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func testMapValuesByKeyPath() { let ex = expectation(description: "") Promise.value([Person(name: "Max"), Person(name: "Roman"), Person(name: "John")]).mapValues(\.name).done { @@ -154,7 +154,7 @@ class ThenableTests: XCTestCase { wait(for: [ex], timeout: 10) } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func testCompactMapValuesByKeyPath() { let ex = expectation(description: "") Promise.value([Person(name: "Max"), Person(name: "Roman", age: 26), Person(name: "John", age: 23)]).compactMapValues(\.age).done { @@ -198,7 +198,7 @@ class ThenableTests: XCTestCase { wait(for: [ex], timeout: 10) } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func testFilterValuesByKeyPath() { let ex = expectation(description: "") Promise.value([Person(name: "Max"), Person(name: "Roman", age: 26, isStudent: false), Person(name: "John", age: 23, isStudent: true)]).filterValues(\.isStudent).done {