Some kind of forced kotlin change or something

This commit is contained in:
polymorphicshade 2020-12-15 11:47:19 -07:00
parent cd9ff1a48f
commit 34591d5834

View file

@ -4,7 +4,6 @@ import org.junit.Assert.assertEquals
import org.junit.Test import org.junit.Test
import java.time.LocalDate import java.time.LocalDate
import java.time.OffsetDateTime import java.time.OffsetDateTime
import java.time.ZoneId
import java.time.ZoneOffset import java.time.ZoneOffset
import java.util.Calendar import java.util.Calendar
import java.util.TimeZone import java.util.TimeZone
@ -13,7 +12,7 @@ class OffsetDateTimeToCalendarTest {
@Test @Test
fun testRelativeTimeWithCurrentOffsetDateTime() { fun testRelativeTimeWithCurrentOffsetDateTime() {
val calendar = LocalDate.of(2020, 1, 1).atStartOfDay().atOffset(ZoneOffset.UTC) val calendar = LocalDate.of(2020, 1, 1).atStartOfDay().atOffset(ZoneOffset.UTC)
.toCalendar() .toCalendar()
assertEquals(2020, calendar[Calendar.YEAR]) assertEquals(2020, calendar[Calendar.YEAR])
assertEquals(0, calendar[Calendar.MONTH]) assertEquals(0, calendar[Calendar.MONTH])