Skip to content

Commit 3c21a36

Browse files
fix test to match multiple lines at once
1 parent 8a660a0 commit 3c21a36

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/SymbolGraph/Relationships/Synthesized/ConditionalConformance.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ public struct S<T> {
4242
}
4343
}
4444

45-
// CONFORMS: "kind": "conformsTo"
46-
// CONFORMS-NEXT: "source": "s:22ConditionalConformance1SV"
47-
// CONFORMS-NEXT: "target": "s:22ConditionalConformance1PP"
48-
// CONFORMS-NEXT: swiftConstraints
45+
// S<Int> will also have synthesized conformances to Copyable and Escapable, so match multiple lines
46+
// at once to make sure we only find the conformance we want to see
47+
// CONFORMS: "kind": "conformsTo"{{.*[[:space:]].*}} "source": "s:22ConditionalConformance1SV"{{.*[[:space:]].*}} "target": "s:22ConditionalConformance1PP"{{.*[[:space:]].*}} "swiftConstraints"
4948
// CONFORMS: "kind": "sameType"
5049
// CONFORMS-NEXT: "lhs": "T"
5150
// CONFORMS-NEXT: "rhs": "Int"

0 commit comments

Comments
 (0)