Skip to content

Conversation

cheeseng
Copy link
Contributor

Enhanced GenSeqDiffer, GenSetDiffer and GenMapDiffer to support find diff elements according to limit size of prettifier when available.


val shortName = Differ.simpleClassName(aSet)
println("####shortName: " + shortName + ", ")
if (missingInLeft.isEmpty && missingInRight.isEmpty)
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you intend to remove this println?

prettifier match {
case tp: TruncatingPrettifier => tp.sizeLimit.value
case _ => math.max(aMap.size, bMap.size)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This match seems to be repeated 3 times. Perhaps factor out into a method?

@cheeseng
Copy link
Contributor Author

@bvenners Thanks for reviewing, I have made the adjustments can you see if it is fit now?

Thanks!

@bvenners bvenners merged commit d92125c into scalatest:3.2.x-new Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants