Skip to content

Commit

Permalink
#21 Compare instant of OffsetDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Mar 28, 2024
1 parent 088f720 commit da8c98f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ru.itmo.lms.botalka.api.http.endpoint

import io.kotest.matchers.collections.shouldBeUnique
import io.kotest.matchers.date.shouldBeAfter
import io.kotest.matchers.date.shouldHaveSameInstantAs
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -61,11 +62,11 @@ class HomeworkApiTest(
}
}

draftToResultList.forEach { (draft, result) ->
draft.title.text shouldBe result.title
draft.description.text shouldBe result.description
draft.maxScore.value shouldBe result.maxScore
draft.publicationMoment shouldBe result.publicationMoment
draftToResultList.forEach { (l, r) ->
l.title.text shouldBe r.title
l.description.text shouldBe r.description
l.maxScore.value shouldBe r.maxScore
l.publicationMoment shouldHaveSameInstantAs r.publicationMoment
}

val results = draftToResultList.map { it.second }
Expand Down

0 comments on commit da8c98f

Please sign in to comment.