Skip to content

Commit 10fd6fb

Browse files
Merge pull request swiftlang#26878 from aschwaighofer/conditionalize_kvopaths_tests
Conditionalize KVOKeyPaths tests that only work with Swift 5.1 (2)
2 parents 9e61d53 + d745096 commit 10fd6fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/stdlib/KVOKeyPaths.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ let optionalKeyPathObserver = testObjectForOptionalKeyPath.observe(\.optionalObj
214214
testObjectForOptionalKeyPath.optionalObject = nil
215215
testObjectForOptionalKeyPath.optionalObject = "foo"
216216

217-
// CHECK-LABEL: observe keyPath with optional value
218-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
219-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
220-
// CHECK-NEXT: oldValue = Optional(nil), newValue = Optional(Optional("foo"))
217+
// CHECK-51-LABEL: observe keyPath with optional value
218+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
219+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(nil)
220+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(Optional("foo"))

0 commit comments

Comments
 (0)