Skip to content
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

Differ Enhancement #2177

Merged
merged 6 commits into from Nov 30, 2022
Merged

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.

None yet

2 participants