We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 188418c + c5faade commit 0874463Copy full SHA for 0874463
Tests/SwiftFormatPrettyPrintTests/SequenceExprFoldingTests.swift
@@ -67,13 +67,6 @@ final class SequenceExprFoldingTests: XCTestCase {
67
}
68
69
func testNestedTernary() {
70
- // When parsing ternary expressions, SwiftSyntax sometimes wraps them in a
71
- // SequenceExpr containing a single element, and also wraps the first choice
72
- // in a SequenceExpr containing a single element. Our folding will remove
73
- // the outer sequence but will not touch or recurse into the sequence
74
- // wrapping the first choice, which is why we have the "double wrapping"
75
- // ("{{ ... }}") of first choices for nested ternaries below.
76
-
77
assertFoldedExprStructure(
78
"a ? b : c ? d : e",
79
"{ a ? b : { c ? d : e }}")
0 commit comments