Fix ktlint violation

pull/1120/head
sgallese 4 years ago
parent bead6d7dab
commit b9f62c53bc

@ -420,16 +420,16 @@ class DatesTest : BaseUnitTest() {
@Test
fun testDaysSince2000() {
val zeroDays = daysSince2000(2000, Month.JANUARY, 1)
val zeroDays = daysSince2000(2000, Month.JANUARY, 1)
assertEquals(0, zeroDays)
val oneYearWithLeapYear = daysSince2000(2001, Month.JANUARY, 1)
val oneYearWithLeapYear = daysSince2000(2001, Month.JANUARY, 1)
assertEquals(366, oneYearWithLeapYear)
val fourYearsWithLeapYear = daysSince2000(2004, Month.JANUARY, 1)
val fourYearsWithLeapYear = daysSince2000(2004, Month.JANUARY, 1)
assertEquals(1461, fourYearsWithLeapYear)
val oneYearPrior = daysSince2000(1999, Month.JANUARY, 1)
val oneYearPrior = daysSince2000(1999, Month.JANUARY, 1)
assertEquals(-365, oneYearPrior)
}

@ -36,7 +36,7 @@ class TimestampTest : BaseUnitTest() {
@Test
fun testToLocalDate() {
val timestamp = Timestamp(JAN_1_2000_IN_UNIX_TIME)
val expectedLocalDate = LocalDate(2000, Month.JANUARY ,1)
val expectedLocalDate = LocalDate(2000, Month.JANUARY, 1)
assertEquals(expectedLocalDate, timestamp.toLocalDate())
}

Loading…
Cancel
Save