Skip to content

Commit

Permalink
Update TraceJvmSpec.kt (#3276)
Browse files Browse the repository at this point in the history
* Update TraceJvmSpec.kt

* Update TraceJvmSpec.kt

---------

Co-authored-by: Simon Vergauwen <[email protected]>
  • Loading branch information
Tejas Mate and nomisRev authored Nov 4, 2023
1 parent d15b5fc commit 6117dc4
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package arrow.core.raise

import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe

import kotlin.test.Test
import kotlinx.coroutines.test.runTest

@OptIn(ExperimentalTraceApi::class)
class TraceJvmSpec : StringSpec({
"Can trace a typed error" {
class TraceJvmSpec {
@Test fun canTraceATypedError() = runTest {
either<RuntimeException, Nothing> {
traced({ raise(RuntimeException("")) }) { traced, raised ->
// Remove first 2 lines:
Expand All @@ -21,4 +22,4 @@ class TraceJvmSpec : StringSpec({
}
}
}
})
}

0 comments on commit 6117dc4

Please sign in to comment.