diff --git a/Tests/CombineSchedulersTests/ImmediateSchedulerTests.swift b/Tests/CombineSchedulersTests/ImmediateSchedulerTests.swift index c5374be..2cb8020 100644 --- a/Tests/CombineSchedulersTests/ImmediateSchedulerTests.swift +++ b/Tests/CombineSchedulersTests/ImmediateSchedulerTests.swift @@ -1,3 +1,4 @@ +#if canImport(Combine) import Combine import CombineSchedulers import XCTest @@ -17,3 +18,4 @@ final class ImmediateSchedulerTests: XCTestCase { XCTAssertEqual(worked, 3) } } +#endif diff --git a/Tests/CombineSchedulersTests/TestSchedulerTests.swift b/Tests/CombineSchedulersTests/TestSchedulerTests.swift index 3ee0511..03a3dc3 100644 --- a/Tests/CombineSchedulersTests/TestSchedulerTests.swift +++ b/Tests/CombineSchedulersTests/TestSchedulerTests.swift @@ -1,3 +1,4 @@ +#if canImport(Combine) import Combine import CombineSchedulers import XCTest @@ -250,3 +251,4 @@ final class CombineSchedulerTests: XCTestCase { XCTAssertEqual(testScheduler.now, start.advanced(by: .seconds(2))) } } +#endif \ No newline at end of file diff --git a/Tests/CombineSchedulersTests/TimerTests.swift b/Tests/CombineSchedulersTests/TimerTests.swift index ae0756c..2fbf8e7 100644 --- a/Tests/CombineSchedulersTests/TimerTests.swift +++ b/Tests/CombineSchedulersTests/TimerTests.swift @@ -1,3 +1,4 @@ +#if canImport(Combine) import Combine import CombineSchedulers import XCTest @@ -142,3 +143,4 @@ final class TimerTests: XCTestCase { XCTAssertEqual(count, 3) } } +#endif \ No newline at end of file diff --git a/Tests/CombineSchedulersTests/UISchedulerTests.swift b/Tests/CombineSchedulersTests/UISchedulerTests.swift index b55bbfb..bd4770a 100644 --- a/Tests/CombineSchedulersTests/UISchedulerTests.swift +++ b/Tests/CombineSchedulersTests/UISchedulerTests.swift @@ -1,3 +1,4 @@ +#if canImport(Combine) import Combine import CombineSchedulers import XCTest @@ -29,3 +30,4 @@ final class UISchedulerTests: XCTestCase { XCTAssertTrue(worked) } } +#endif \ No newline at end of file diff --git a/Tests/CombineSchedulersTests/UnimplementedSchedulerTests.swift b/Tests/CombineSchedulersTests/UnimplementedSchedulerTests.swift index a0eee54..d662f8d 100644 --- a/Tests/CombineSchedulersTests/UnimplementedSchedulerTests.swift +++ b/Tests/CombineSchedulersTests/UnimplementedSchedulerTests.swift @@ -1,4 +1,5 @@ #if compiler(>=5.4) +#if canImport(Combine) import Combine import CombineSchedulers import XCTest @@ -32,4 +33,5 @@ } } } +#endif // canImport(Combine) #endif