Skip to content

Commit 3c76235

Browse files
committed
switch to regexes
1 parent 741b71a commit 3c76235

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/Interpreter/keypath.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,18 @@ public func generic_class_constrained_keypath<U, V>(_ c: V) where V : GenericCon
6969
print(c[keyPath: kp].text)
7070
}
7171

72-
// CHECK: \GenericController<Int>.label
72+
// CHECK: {{\\GenericController<Int>.label|\\GenericController<Int>.<.* \(MyLabel\)>}}
7373
// CHECK: label
7474
generic_class_constrained_keypath(GenericController(5))
7575

76-
// CHECK: \Controller.secondLabel!.text
76+
// CHECK: {{\\Controller.secondLabel!.text|\\Controller.<.* \(MyLabel\)>!.<.* (String)>}}
7777
print(\Controller.secondLabel!.text)
78-
// CHECK: \Controller.subscript(_: )
78+
// CHECK: {{\\Controller.subscript\(_: \)|\\Controller.<.* \(Int\)>}}
7979
print(\Controller["abc"])
80-
// CHECK: \S.a
80+
// CHECK: {{\\S.a|\\S.<offset 0 \(Int\)>}}
8181
print(\S.a)
82-
// CHECK: \Controller.subscript(int: str: _: )
82+
// CHECK: {{\\Controller.subscript\(int: str: _: \)|\\Controller.<.* \(Int\)>}}
8383
print(\Controller[int: 0, str: "", 0])
84-
// CHECK: \Controller.thirdLabel
84+
// CHECK: {{\\Controller.thirdLabel|\\Controller.<.* \(Int\)>}}
8585
print(\Controller.thirdLabel)
86+

0 commit comments

Comments
 (0)