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

Skip to content

Conversation

@emarx
Copy link
Contributor

@emarx emarx commented Feb 25, 2021

This PR adds a function assertCompletesM to complement the existing assertCompletes

@regiskuckaertz
Copy link
Member

@emarx you will need to run sbt prepare to fix all those lint issues.

@emarx emarx requested a review from regiskuckaertz February 27, 2021 23:04
@emarx
Copy link
Contributor Author

emarx commented Feb 27, 2021

Thanks, @regiskuckaertz! Ran sbt publish and made the requested change.

* Asserts that the given test was completed.
*/
val assertCompletesM: UIO[TestResult] =
assertMImpl(UIO.succeed(true))(Assertion.isTrue)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can actually be succeedNow for internal implementations like this.

}

object Sized {

Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, hadn't switched the scalafmt

Copy link
Contributor

@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

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

Looks great! Just a couple of very minor comments.

@emarx
Copy link
Contributor Author

emarx commented Feb 28, 2021

Thanks for your review, @adamgfraser! Comments addressed.

@adamgfraser
Copy link
Contributor

Looks great! Will merge after all the checks pass.

@adamgfraser adamgfraser merged commit dbaf981 into zio:master Mar 1, 2021
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