From aa342b0e24dbc33151301962ea15d3be4e395100 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Fri, 8 Sep 2023 12:23:25 -0700 Subject: [PATCH] Updated tests --- .../Data/PackageVariablesTests.swift | 2 +- Tests/RevenueCatUITests/LocalizationTests.swift | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/RevenueCatUITests/Data/PackageVariablesTests.swift b/Tests/RevenueCatUITests/Data/PackageVariablesTests.swift index ced71b5c07..bb73fee0ae 100644 --- a/Tests/RevenueCatUITests/Data/PackageVariablesTests.swift +++ b/Tests/RevenueCatUITests/Data/PackageVariablesTests.swift @@ -164,7 +164,7 @@ class PackageVariablesTests: TestCase { func testSpanishRelativeDiscount() { expect(TestData.weeklyPackage.localizedRelativeDiscount(nil, Self.spanish)).to(beNil()) - expect(TestData.weeklyPackage.localizedRelativeDiscount(0.372, Self.english)) == "ahorra 37%" + expect(TestData.weeklyPackage.localizedRelativeDiscount(0.372, Self.spanish)) == "37% de descuento" } } diff --git a/Tests/RevenueCatUITests/LocalizationTests.swift b/Tests/RevenueCatUITests/LocalizationTests.swift index 1bce3a9efb..9572c2907d 100644 --- a/Tests/RevenueCatUITests/LocalizationTests.swift +++ b/Tests/RevenueCatUITests/LocalizationTests.swift @@ -265,12 +265,12 @@ class DiscountSpanishLocalizationTests: BaseLocalizationTests { override var locale: Locale { return .init(identifier: "es_ES") } func testLocalization() throws { - verify(0, "Ahorra 0%") - verify(0.1, "Ahorra 10%") - verify(0.331, "Ahorra 33%") - verify(0.5, "Ahorra 50%") - verify(1, "Ahorra 100%") - verify(1.1, "Ahorra 110%") + verify(0, "0% de descuento") + verify(0.1, "10% de descuento") + verify(0.331, "33% de descuento") + verify(0.5, "50% de descuento") + verify(1, "100% de descuento") + verify(1.1, "110% de descuento") } } @@ -278,7 +278,7 @@ class DiscountSpanishLocalizationTests: BaseLocalizationTests { @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *) class DiscountOtherLanguageLocalizationTests: BaseLocalizationTests { - override var locale: Locale { return .init(identifier: "fr") } + override var locale: Locale { return .init(identifier: "ci") } func testLocalizationDefaultsToEnglish() { verify(1, "100% off")