We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestLens#cause
I expect the following code to compile:
test("TestLens#cause") { for { exit <- ZIO.failCause(Cause.fail("Boom!")).exit } yield assertTrue(exit.is(_.cause) == Cause.fail("Boom!")) }
But fails with the following errors:
[info] compiling 4 Scala sources to /home/milad/sources/scala/zio-2.x-new/examples/jvm/target/scala-2.13/test-classes ... [error] /home/milad/sources/scala/zio-2.x-new/examples/shared/src/test/scala/zio/examples/test/TestTest.scala:65:21: type mismatch; [error] found : zio.test.TestArrow[zio.Cause[String],Boolean] [error] required: zio.test.TestArrow[zio.Exit[String,Nothing],?] [error] } yield assertTrue(exit.is(_.cause) == Cause.fail("Boom!"))
Here is a hint for anyone who wants to fix it:
parseAsAssertion
TestArrow
Exit[E, A]
Cause[E]
SmartAssertions
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I expect the following code to compile:
But fails with the following errors:
Here is a hint for anyone who wants to fix it:
parseAsAssertion
TestArrow
fromExit[E, A]
toCause[E]
insideSmartAssertions
object.The text was updated successfully, but these errors were encountered: