Skip to content

containsNoDuplicate reports has duplicates #777

@robstoll

Description

@robstoll

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions