Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Sep 8, 2023
1 parent e0bc54e commit 08d9acf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Tests/RevenueCatUITests/Data/PackageVariablesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}
Expand Down
12 changes: 6 additions & 6 deletions Tests/RevenueCatUITests/LocalizationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

}
Expand Down

0 comments on commit 08d9acf

Please sign in to comment.