Skip to content

Commit a8ab390

Browse files
committed
Add examples for single smart qoutes and double straight quotes
1 parent e4e6eaa commit a8ab390

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Tests/SwiftFormatTests/Rules/BeginDocumentationCommentWithOneLineSummaryTests.swift

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,25 @@ final class BeginDocumentationCommentWithOneLineSummaryTests: LintOrFormatRuleTe
147147
/// Creates an instance with the same raw value as `x` failing iff `x.kind != Subject.kind`.
148148
struct TestBackTick {}
149149
150+
/// A set of `Diagnostic` that can answer the question ‘was there an error?’ in O(1).
151+
struct TestSingleSmartQuotes {}
152+
150153
/// A set of `Diagnostic` that can answer the question 'was there an error?' in O(1).
151-
struct TestSingleQuotes {}
154+
struct TestSingleStraightQuotes {}
152155
153156
/// A set of `Diagnostic` that can answer the question “was there an error?” in O(1).
154-
struct TestDoubleQuotes {}
157+
struct TestDoubleSmartQuotes {}
158+
159+
/// A set of `Diagnostic` that can answer the question "was there an error?" in O(1).
160+
struct TestDoubleStraightQuotes {}
155161
156162
/// A set of `Diagnostic` that can answer the question “was there
157163
/// an error?” in O(1).
158-
struct TestTwoLinesDoubleQuotes {}
164+
struct TestTwoLinesDoubleSmartQuotes {}
165+
166+
/// A set of `Diagnostic` that can answer the question "was there
167+
/// an error?" in O(1).
168+
struct TestTwoLinesDoubleStraightQuotes {}
159169
"""
160170
)
161171
}

0 commit comments

Comments
 (0)