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

Use unambiguous representations in collection matchers #392

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

ajalt
Copy link
Contributor

@ajalt ajalt commented Aug 8, 2018

I recently ran into some confusing output when comparing a list of Ints with a list of Longs. This PR uses the existing stringRepr function (used in equality comparisons) in the collection matchers in order to print values unambiguously.

I recently ran into some confusing output when comparing a list of `Int`s with a list of `Long`s. This PR uses the existing `stringRepr` function (used in equality comparisons) in the collection matchers in order to print values unambiguously.
@sksamuel sksamuel merged commit 486a53c into kotest:master Aug 8, 2018
@sksamuel
Copy link
Member

sksamuel commented Aug 8, 2018

Great. Maybe worth putting in 3.1.x branch too.

@ajalt ajalt deleted the collection-string-repr branch August 8, 2018 15:50
sksamuel pushed a commit that referenced this pull request Sep 13, 2018
I recently ran into some confusing output when comparing a list of `Int`s with a list of `Long`s. This PR uses the existing `stringRepr` function (used in equality comparisons) in the collection matchers in order to print values unambiguously.
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