From 157668e35a472fccc9d83c5ed3ba5ccd9aeb596e Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 13 Mar 2024 23:34:15 -0500 Subject: [PATCH] Fix tests --- .../java/org/tasks/repeats/RepeatRuleToStringTest.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/androidTest/java/org/tasks/repeats/RepeatRuleToStringTest.kt b/app/src/androidTest/java/org/tasks/repeats/RepeatRuleToStringTest.kt index a451e16fb..e0f335766 100644 --- a/app/src/androidTest/java/org/tasks/repeats/RepeatRuleToStringTest.kt +++ b/app/src/androidTest/java/org/tasks/repeats/RepeatRuleToStringTest.kt @@ -11,7 +11,8 @@ import org.tasks.injection.InjectingTestCase import org.tasks.injection.ProductionModule import org.tasks.time.DateTime import java.text.ParseException -import java.util.* +import java.util.Locale +import java.util.TimeZone import javax.inject.Inject @UninstallModules(ProductionModule::class) @@ -84,7 +85,7 @@ class RepeatRuleToStringTest : InjectingTestCase() { Freeze.freezeAt(DateTime(2021, 1, 4)) { withTZ(BERLIN) { assertEquals( - "Repeats daily until February 23", + "Repeats daily, ends on February 23", toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") ) } @@ -96,7 +97,7 @@ class RepeatRuleToStringTest : InjectingTestCase() { Freeze.freezeAt(DateTime(2021, 1, 4)) { withTZ(LONDON) { assertEquals( - "Repeats daily until February 23", + "Repeats daily, ends on February 23", toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") ) } @@ -108,7 +109,7 @@ class RepeatRuleToStringTest : InjectingTestCase() { Freeze.freezeAt(DateTime(2021, 1, 4)) { withTZ(NEW_YORK) { assertEquals( - "Repeats daily until February 23", + "Repeats daily, ends on February 23", toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") ) }