Skip to content

Commit fa522d0

Browse files
committed
Move conditional compilation directive inside tests.
This ensures that the test function always exists, even if the symbol is not defined, so that `--generate-linuxmain` contains the symbol in both cases. When the symbol is undefined, the empty test will vacuously succeed.
1 parent 47b5015 commit fa522d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/SwiftFormatPrettyPrintTests/XCTestManifests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ extension DifferentiationAttributeTests {
207207
// `swift test --generate-linuxmain`
208208
// to regenerate.
209209
static let __allTests__DifferentiationAttributeTests = [
210+
("testDerivative", testDerivative),
210211
("testDifferentiable", testDifferentiable),
212+
("testTranspose", testTranspose),
211213
]
212214
}
213215

0 commit comments

Comments
 (0)