Skip to content

Commit 3e378ec

Browse files
authored
Fix: Formatting typos (#1591)
* test: fix "strategy" function names * docs: fix "unexpected" comment
1 parent 780ee8b commit 3e378ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/FoundationInternationalizationTests/Formatting/NumberParseStrategyTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private struct NumberParseStrategyTests {
211211
try _verifyRoundtripCurrency(negativeData, currencyStyle.decimalSeparator(strategy: .always), "currency style, decimal display: always")
212212
}
213213

214-
@Test func parseStategyCodable_sameCurrency() throws {
214+
@Test func parseStrategyCodable_sameCurrency() throws {
215215
// same currency code
216216
let fs: IntegerFormatStyle<Int32>.Currency = .init(code: "USD", locale: Locale(identifier:"en_US"))
217217
let p = IntegerParseStrategy(format: fs)
@@ -228,7 +228,7 @@ private struct NumberParseStrategyTests {
228228
#expect(decoded.formatStyle.currencyCode == "USD")
229229
}
230230

231-
@Test func parseStategyCodable_differentCurrency() throws {
231+
@Test func parseStrategyCodable_differentCurrency() throws {
232232
let fs: IntegerFormatStyle<Int32>.Currency = .init(code: "GBP", locale: Locale(identifier:"en_US"))
233233
let p = IntegerParseStrategy(format: fs)
234234
// Valid JSON representation for `p`

Tests/FoundationInternationalizationTests/Formatting/ParseStrategy+RegexComponentTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ DEBIT 03/24/2020 IRX tax payment ($52,249.98)
140140
}
141141

142142
@Test func apiStatements2() {
143-
// Test dates and numbers appearing in unexpeted places
143+
// Test dates and numbers appearing in unexpected places
144144
let statement = """
145145
CREDIT Apr 06/20 Zombie 5.29lb@$3.99/lb USD 21.11
146146
DSLIP Apr 06/20 GMT gain USD 3,020.85

0 commit comments

Comments
 (0)