Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@LGLO
Copy link
Contributor

@LGLO LGLO commented Oct 10, 2019

Migrated random part of ZIOSpecJvm to ZIOSpec, using zio-test

testM("on Left value") {
assertM(UIO(Left(42)).leftOrFail(ExampleError), equalTo(42))
},
testM("on Righ value") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo here.

Copy link
Contributor Author

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 {
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Member

@mijicd mijicd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ghostdogpr ghostdogpr merged commit 7716184 into zio:master Oct 10, 2019
@ghostdogpr
Copy link
Member

Nice!

@LGLO LGLO deleted the ziojvmspecs branch October 11, 2019 04:22
Twizty pushed a commit to Twizty/zio that referenced this pull request Nov 13, 2019
* Migrating part of ZIOSpecJvm to zio-test.

* Moved type inference tests to separate file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants