Skip to content

Commit

Permalink
move ZIO test to JVM-only
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-kai committed Oct 16, 2023
1 parent 1e06c6a commit 34498de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package izumi.functional.bio

final class ErrorAccumulatingOpsTestZIO extends ErrorAccumulatingOpsTest[zio.IO] {
private val runner: UnsafeRun2[zio.IO] = UnsafeRun2.createZIO()

override implicit def F: Error2[zio.IO] = Root.Convert3To2(Root.BIOZIO)
override def unsafeRun[E, A](f: zio.IO[E, A]): Either[E, A] = runner.unsafeRun(f.attempt)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ final class ErrorAccumulatingOpsTestEither extends ErrorAccumulatingOpsTest[Eith
override def unsafeRun[E, A](f: Either[E, A]): Either[E, A] = f
}

final class ErrorAccumulatingOpsTestZIO extends ErrorAccumulatingOpsTest[zio.IO] {
private val runner: UnsafeRun2[zio.IO] = UnsafeRun2.createZIO()

override implicit def F: Error2[zio.IO] = Root.Convert3To2(Root.BIOZIO)
override def unsafeRun[E, A](f: zio.IO[E, A]): Either[E, A] = runner.unsafeRun(f.attempt)
}

@nowarn("msg=Unused import")
abstract class ErrorAccumulatingOpsTest[F[+_, +_]] extends AnyWordSpec {
import scala.collection.compat.*
Expand Down

0 comments on commit 34498de

Please sign in to comment.