From b9f62c53bc58db4744f6bc18ad3dc9a83f2c948d Mon Sep 17 00:00:00 2001 From: sgallese Date: Sun, 31 Oct 2021 12:47:23 -0700 Subject: [PATCH] Fix ktlint violation --- .../kotlin/org/isoron/platform/time/DatesTest.kt | 8 ++++---- .../java/org/isoron/uhabits/core/models/TimestampTest.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/uhabits-core/src/commonTest/kotlin/org/isoron/platform/time/DatesTest.kt b/uhabits-core/src/commonTest/kotlin/org/isoron/platform/time/DatesTest.kt index f036b1c53..867e045d9 100644 --- a/uhabits-core/src/commonTest/kotlin/org/isoron/platform/time/DatesTest.kt +++ b/uhabits-core/src/commonTest/kotlin/org/isoron/platform/time/DatesTest.kt @@ -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) } diff --git a/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/models/TimestampTest.kt b/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/models/TimestampTest.kt index 9c170d599..1f977e6db 100644 --- a/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/models/TimestampTest.kt +++ b/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/models/TimestampTest.kt @@ -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()) }