From bec7a70b9ad99450ddf8a7651cd4d99f2ebb51cc Mon Sep 17 00:00:00 2001 From: sgallese Date: Sun, 19 Dec 2021 21:01:28 -0800 Subject: [PATCH] Timestamp test --- .../isoron/uhabits/core/models/TimestampTest.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 1f977e6db..d6b1f7570 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 @@ -75,4 +75,20 @@ class TimestampTest : BaseUnitTest() { val t = Timestamp(1578054764000L) assertThat(t.unixTime, equalTo(1578009600000L)) } + + // toJavaDate (write JVM test, then convert) + + // toCalendar (write JVM test, then convert) + + //toDialogDateString (add test to DateFormats) + + // toString (add test to DateFormats) + + // weekday (write JVM test, then convert) + + //truncate (write JVM test, then convert) + + // Companion.fromLocalDate (simple test) + + // Companion.from (simple test) }