You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix new package XCTest file formatting and include throws keyword (#3448) (#3449)
Motivation: Fix formatting of the XCTest source file in newly `init`'ed packages, and include the
`throws` keyword on the example XCTest method as a convenience to users and to promote use of throwing
test methods in XCTests.
Changes:
- Fix a bug in the formatting of XCTest source files in `InitPackage`, where the closing `"""` string
terminator was outdented one level too far, which resulted in the file contents being indented unnecessarily.
- Include the `throws` keyword on `func testExample()` in the new Library type package template.
- Modify an existing test to validate these improvements.
rdar://77209458
rdar://77209464
0 commit comments