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

containsNoDuplicate reports has duplicates #777

Closed
robstoll opened this issue Jan 10, 2021 · 0 comments · Fixed by #779
Closed

containsNoDuplicate reports has duplicates #777

robstoll opened this issue Jan 10, 2021 · 0 comments · Fixed by #779
Assignees
Labels
Milestone

Comments

@robstoll
Copy link
Owner

Affected Version: 0.14.0, 0.15.0
API (fluent-en_GB, infix-en_GB): both
Platform (jvm, js): all
Extension (none, kotlin 1.3): none

How to reproduce the problem

Consider the following code snippet

expect(listOf(2,2).containsNoDuplicates()

Results in a report:

expected that subject: [1, 2, 1, 2, 3, 4, 4, 4]        (java.util.Arrays.ArrayList <1705939499>)
◆ has: duplicate elements
  ⚬ index 0: 1        (kotlin.Int <1614645392>)
  ⚬ index 1: 2        (kotlin.Int <1997154602>)

Describe the bug

is has

Expected behaviour

should be has not

@robstoll robstoll added the bug label Jan 10, 2021
@robstoll robstoll added this to the 0.16.0 milestone Jan 10, 2021
@robstoll robstoll self-assigned this Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant