diff --git a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/CollectionsSyntaxTests.kt b/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/CollectionsSyntaxTests.kt index 27a6975fc6b..3ce6f5bd96b 100644 --- a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/CollectionsSyntaxTests.kt +++ b/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/CollectionsSyntaxTests.kt @@ -16,21 +16,22 @@ package arrow.core -import io.kotest.core.spec.style.StringSpec import io.kotest.matchers.shouldBe +import kotlin.test.Test +import kotlinx.coroutines.test.runTest -class CollectionsSyntaxTests : StringSpec({ - "tail" { +class CollectionsSyntaxTests { + @Test fun tail() = runTest { listOf(1, 2, 3).tail() shouldBe listOf(2, 3) } - "prependTo" { + @Test fun prependTo() = runTest { 1 prependTo listOf(2, 3) shouldBe listOf(1, 2, 3) } - "destructured" { + @Test fun destructured() = runTest { val (head, tail) = listOf(1, 2, 3).let { it.first() to it.tail() } head shouldBe 1 tail shouldBe listOf(2, 3) } -}) +}