From 07f19c31c120b16290cb2edc558985d28347bcb7 Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Tue, 11 Nov 2025 11:07:20 +0330 Subject: [PATCH 1/2] test: fix "strategy" function names --- .../Formatting/NumberParseStrategyTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/FoundationInternationalizationTests/Formatting/NumberParseStrategyTests.swift b/Tests/FoundationInternationalizationTests/Formatting/NumberParseStrategyTests.swift index c49189413..d8305b171 100644 --- a/Tests/FoundationInternationalizationTests/Formatting/NumberParseStrategyTests.swift +++ b/Tests/FoundationInternationalizationTests/Formatting/NumberParseStrategyTests.swift @@ -211,7 +211,7 @@ private struct NumberParseStrategyTests { try _verifyRoundtripCurrency(negativeData, currencyStyle.decimalSeparator(strategy: .always), "currency style, decimal display: always") } - @Test func parseStategyCodable_sameCurrency() throws { + @Test func parseStrategyCodable_sameCurrency() throws { // same currency code let fs: IntegerFormatStyle.Currency = .init(code: "USD", locale: Locale(identifier:"en_US")) let p = IntegerParseStrategy(format: fs) @@ -228,7 +228,7 @@ private struct NumberParseStrategyTests { #expect(decoded.formatStyle.currencyCode == "USD") } - @Test func parseStategyCodable_differentCurrency() throws { + @Test func parseStrategyCodable_differentCurrency() throws { let fs: IntegerFormatStyle.Currency = .init(code: "GBP", locale: Locale(identifier:"en_US")) let p = IntegerParseStrategy(format: fs) // Valid JSON representation for `p` From b67c7a2aeb072b46275c74430a587667062fc737 Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Tue, 11 Nov 2025 11:07:43 +0330 Subject: [PATCH 2/2] docs: fix "unexpected" comment --- .../Formatting/ParseStrategy+RegexComponentTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FoundationInternationalizationTests/Formatting/ParseStrategy+RegexComponentTests.swift b/Tests/FoundationInternationalizationTests/Formatting/ParseStrategy+RegexComponentTests.swift index f9370c88d..900095ab0 100644 --- a/Tests/FoundationInternationalizationTests/Formatting/ParseStrategy+RegexComponentTests.swift +++ b/Tests/FoundationInternationalizationTests/Formatting/ParseStrategy+RegexComponentTests.swift @@ -138,7 +138,7 @@ DEBIT 03/24/2020 IRX tax payment ($52,249.98) } @Test func apiStatements2() { - // Test dates and numbers appearing in unexpeted places + // Test dates and numbers appearing in unexpected places let statement = """ CREDIT Apr 06/20 Zombie 5.29lb@$3.99/lb USDĀ 21.11 DSLIP Apr 06/20 GMT gain USDĀ 3,020.85