Skip to content

Use unambiguous representations in collection matchers#392

Merged
sksamuel merged 1 commit into
kotest:masterfrom
ajalt:collection-string-repr
Aug 8, 2018
Merged

Use unambiguous representations in collection matchers#392
sksamuel merged 1 commit into
kotest:masterfrom
ajalt:collection-string-repr

Conversation

@ajalt

@ajalt ajalt commented Aug 8, 2018

Copy link
Copy Markdown
Contributor

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

sksamuel commented Aug 8, 2018

Copy link
Copy Markdown
Member

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