Skip to content

Commit ef341aa

Browse files
committed
[Test] Make KVOKeyPaths.swift work with un-nested Optionals.
Older runtimes will un-nest nil Optionals when casting, which broke this test when running against older runtimes. rdar://84992292
1 parent 367b4c1 commit ef341aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/stdlib/KVOKeyPaths.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,6 @@ testObjectForOptionalKeyPath.optionalObject = nil
215215
testObjectForOptionalKeyPath.optionalObject = "foo"
216216

217217
// 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)
218+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = {{Optional\(nil\)|nil}}
219+
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = {{Optional\(nil\)|nil}}
220220
// CHECK-51-NEXT: oldValue = Optional(nil), newValue = Optional(Optional("foo"))

0 commit comments

Comments
 (0)