Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "disabled broken tests" #1709

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions app/src/test/java/at/techbee/jtx/database/ICalObjectTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,13 @@ class ICalObjectTest {
}
*/

/*

@Test
fun getRecurId_datetime_withTimezone() {
val sampleDate = 1632474660000L // 2021-09-24 11:11:00
val recurId = ICalObject.getRecurId(sampleDate, "Africa/Banjul")
assertEquals("20210924T091100;TZID=Africa/Banjul", recurId)
}
*/


@Test
Expand Down Expand Up @@ -401,7 +400,7 @@ class ICalObjectTest {
}


/*

@Test
fun getInstancesFromRrule_Journal_WEEKLY() {

Expand All @@ -420,9 +419,8 @@ class ICalObjectTest {
assertEquals(1624060800000L, recurList[4])
assertEquals(1624147200000L, recurList[5])
}
*/

/*

@Test
fun getInstancesFromRrule_Journal_WEEKLY_withExceptions() {

Expand All @@ -440,9 +438,7 @@ class ICalObjectTest {
assertEquals(1624010400000L, recurList[2])
assertEquals(1624183200000L, recurList[3])
}
*/

/*
@Test
fun getInstancesFromRrule_Journal_WEEKLY_withExceptions_andAdditions() {

Expand All @@ -465,7 +461,6 @@ class ICalObjectTest {
assertEquals(1651356000000L, recurList[6])
assertEquals(1651410000000L, recurList[7])
}
*/



Expand Down Expand Up @@ -815,11 +810,7 @@ class ICalObjectTest {
@Test fun getLatLongString1() = assertEquals("(1.11100, 12345.12312)", ICalObject.getLatLongString(1.111, 12345.123123123))
@Test fun getLatLongString_null() = assertNull(ICalObject.getLatLongString(null, 2.222))

/*
@Test fun getAsRecurId_1() {
assertEquals("20230101T000000", ICalObject.getAsRecurId(1672527600000L, "Europe/Vienna"))
}
*/
@Test fun getAsRecurId_1() = assertEquals("20230101T000000", ICalObject.getAsRecurId(1672527600000L, "Europe/Vienna"))
@Test fun getAsRecurId_ALLDAY() = assertEquals("20230101", ICalObject.getAsRecurId(1672531200000, TZ_ALLDAY))

@Test fun setDefaultStartDateFromSettings_TestStart() {
Expand Down
Loading