@@ -78,8 +78,11 @@ final class ObservableTests: BaseTCATestCase {
7878 }
7979
8080 func testReplace( ) async {
81- XCTTODO ( " Ideally this would pass but we cannot detect this kind of mutation currently. " )
82-
81+ #if swift(<6.2)
82+ if #available( iOS 17 , macOS 14 , tvOS 14 , watchOS 10 , * ) {
83+ XCTTODO ( " Ideally this would pass but we cannot detect this kind of mutation currently. " )
84+ }
85+ #endif
8386 var state = ChildState ( count: 42 )
8487 let didChange = LockIsolated ( false )
8588
@@ -91,11 +94,15 @@ final class ObservableTests: BaseTCATestCase {
9194
9295 state. replace ( with: ChildState ( ) )
9396 XCTAssertEqual ( state. count, 0 )
94- XCTAssert ( ! didChange. withValue { $0 } )
97+ XCTAssert ( didChange. withValue { $0 } )
9598 }
9699
97100 func testReset( ) async {
98- XCTTODO ( " Ideally this would pass but we cannot detect this kind of mutation currently. " )
101+ #if swift(<6.2)
102+ if #available( iOS 17 , macOS 14 , tvOS 14 , watchOS 10 , * ) {
103+ XCTTODO ( " Ideally this would pass but we cannot detect this kind of mutation currently. " )
104+ }
105+ #endif
99106
100107 var state = ChildState ( count: 42 )
101108 let didChange = LockIsolated ( false )
@@ -108,7 +115,7 @@ final class ObservableTests: BaseTCATestCase {
108115
109116 state. reset ( )
110117 XCTAssertEqual ( state. count, 0 )
111- XCTAssert ( ! didChange. withValue { $0 } )
118+ XCTAssert ( didChange. withValue { $0 } )
112119 }
113120
114121 func testChildCountMutation( ) async {
0 commit comments