Skip to content

Commit 33c75ae

Browse files
Prachi Gauriarprachigauriar
authored andcommitted
Update to Swift 6.2
1 parent 4a4dc1b commit 33c75ae

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

.github/workflows/VerifyChanges.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
- name: Select Xcode 16.4
17+
- name: Select Xcode 26.0.0
1818
run: |
19-
sudo xcode-select -s /Applications/Xcode_16.4.0.app
19+
sudo xcode-select -s /Applications/Xcode_26.0.0.app
2020
- name: Lint
2121
run: |
2222
Scripts/lint
@@ -70,9 +70,9 @@ jobs:
7070
sourcepackages-directory: .build/DerivedData/SourcePackages
7171
swiftpm-package-resolved-file: Package.resolved
7272
verbose: true
73-
- name: Select Xcode 16.4
73+
- name: Select Xcode 26.0.0
7474
run: |
75-
sudo xcode-select -s /Applications/Xcode_16.4.0.app
75+
sudo xcode-select -s /Applications/Xcode_26.0.0.app
7676
- name: Build for Testing
7777
run: |
7878
"$DEV_BUILDS"/build_and_test.sh --action build-for-testing
@@ -118,9 +118,9 @@ jobs:
118118
- name: Download xccovPretty output
119119
uses: actions/download-artifact@v4
120120
with:
121-
name: xccovPrettyOutput-iOS
121+
name: xccovPrettyOutput-macOS
122122
- name: Post Code Coverage Comment
123123
uses: thollander/actions-comment-pull-request@v3
124124
with:
125-
file-path: xccovPretty-iOS.output
126-
comment-tag: codeCoverage-iOS
125+
file-path: xccovPretty-macOS.output
126+
comment-tag: codeCoverage-macOS

.swift-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"lineBreakBetweenDeclarationAttributes": false,
1515
"lineLength": 120,
1616
"maximumBlankLines": 2,
17+
"multilineTrailingCommaBehavior": "alwaysUsed",
1718
"multiElementCollectionTrailingCommas": true,
1819
"noAssignmentInExpressions": {
1920
"allowedFunctions": []

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ reproducibility.
6767

6868
- **Swift Numerics**: Used for `RealModule` in tests
6969
- **Platform Requirements**: iOS 18+, macOS 15+, tvOS 18+, visionOS 2+, watchOS 11+
70-
- **Swift Version**: Requires Swift 6.1 toolchain
70+
- **Swift Version**: Requires Swift 6.2 toolchain
7171

7272
### Testing Strategy
7373

@@ -85,4 +85,4 @@ reproducibility.
8585
- 100 character line length
8686
- 4-space indented code blocks (no fenced blocks)
8787
- 2-space indented bullet lists with alignment
88-
- Consistent terminology (function vs method, type vs class)
88+
- Consistent terminology (function vs method, type vs class)

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.1
1+
// swift-tools-version: 6.2
22

33
import PackageDescription
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ View our [changelog](CHANGELOG.md) to see what’s new.
2828

2929
## Development Requirements
3030

31-
DevTesting requires a Swift 6.1 toolchain to build. We only test on Apple platforms. We follow the
31+
DevTesting requires a Swift 6.2+ toolchain to build. We only test on Apple platforms. We follow the
3232
[Swift API Design Guidelines][SwiftAPIDesignGuidelines]. We take pride in the fact that our public
3333
interfaces are fully documented and tested. We aim for overall test coverage over 99%.
3434

Tests/DevTestingTests/Random Value Generation/String+RandomTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ import Testing
1111
@testable import DevTesting
1212

1313
struct String_RandomTests {
14+
#if os(macOS)
15+
@Test
16+
func randomWithCharactersHaltsWhenCharactersIsEmptyAndCountIsNonZero() async {
17+
await #expect(processExitsWith: .failure) {
18+
var rng = SystemRandomNumberGenerator()
19+
_ = String.random(withCharactersFrom: "", count: 1, using: &rng)
20+
}
21+
}
22+
#endif
23+
24+
1425
@Test
1526
func randomWithCharactersReturnsEmptyWhenCharactersIsEmptyOrCountIs0() {
1627
var rng = SystemRandomNumberGenerator()

0 commit comments

Comments
 (0)