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

Skip to content

Conversation

@kitlangton
Copy link
Member

Fixed a bug received on Discord from TimP:

  trait Parent
  case class Child(x: String) extends Parent

  def testcontains = test("contains") {
    val someParent: Option[Parent] = None
    val someChild = Child("hi")
    assertTrue(someParent.contains(someChild))
  }

Also—from another feature request—I've made == on in a assertTrue for Arrays use sameElements under the hood, similar to the old equalTo assertion.

@kitlangton kitlangton changed the title Smart assert bugfix and array equaliy Smart assert bug-fix and better array equality Jul 10, 2021
@adamgfraser adamgfraser merged commit 087daaf into zio:master Jul 10, 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.

2 participants