From 1b8ec543a42fb65fcf8ca8bdc7a780e2baab315e Mon Sep 17 00:00:00 2001 From: Marcus Ilgner Date: Thu, 2 Nov 2023 10:45:56 +0100 Subject: [PATCH] refactor: migrate RaiseAccumulateSpec to kotlin-test (#3250) --- .../kotlin/arrow/core/raise/RaiseAccumulateSpec.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/raise/RaiseAccumulateSpec.kt b/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/raise/RaiseAccumulateSpec.kt index 64584c77789..c8f68853a72 100644 --- a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/raise/RaiseAccumulateSpec.kt +++ b/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/raise/RaiseAccumulateSpec.kt @@ -3,11 +3,12 @@ package arrow.core.raise import arrow.core.NonEmptyList import arrow.core.left import arrow.core.nonEmptyListOf -import io.kotest.core.spec.style.StringSpec import io.kotest.matchers.shouldBe +import kotlin.test.Test +import kotlinx.coroutines.test.runTest -class RaiseAccumulateSpec : StringSpec({ - "RaiseAccumulate takes precedence over extension function" { +class RaiseAccumulateSpec { + @Test fun raiseAccumulateTakesPrecedenceOverExtensionFunction() = runTest { either, Int> { zipOrAccumulate( { ensure(false) { "false" } }, @@ -15,4 +16,4 @@ class RaiseAccumulateSpec : StringSpec({ ) { _, _ -> 1 } } shouldBe nonEmptyListOf("false", "1: IsFalse", "2: IsFalse").left() } -}) +}