-
Couldn't load subscription status.
- Fork 1.4k
Migrating part of ZIOSpecJvm to zio-test. #1947
New issue
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
Conversation
| testM("on Left value") { | ||
| assertM(UIO(Left(42)).leftOrFail(ExampleError), equalTo(42)) | ||
| }, | ||
| testM("on Righ value") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix!
| def AsyncUnit[E] = IO.effectAsync[E, Unit](_(IO.unit)) | ||
| } | ||
|
|
||
| object UncurriedBracketCompilesRegardlessOrderOfEAndRTypes { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved outside of spec file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally seprate file? BracketTypeInferenceSpec.scala?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Not that it matters much, but it's a bit awkward check to mix with regular specs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Nice! |
* Migrating part of ZIOSpecJvm to zio-test. * Moved type inference tests to separate file
Migrated random part of ZIOSpecJvm to ZIOSpec, using zio-test