atrium icon indicating copy to clipboard operation
atrium copied to clipboard

use ❗❗for `but no such element was found` instead of »

Open robstoll opened this issue 2 years ago • 2 comments

Platform (all, jvm, js): all Extension (none, kotlin 1.3): none

Code related feature

expect(listOf(1, 2, 3, 4)).toHaveElementsAndAny {
    toBeLessThan(0)
}

Results in

I expected subject: [1, 2, 3, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ to contain, in any order: 
  ⚬ an element which needs: 
      » to be less than: 0        (kotlin.Int <1234789>)
      » but no such element was found

It would be nicer (IMO) if it were:

I expected subject: [1, 2, 3, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ to contain, in any order: 
  ⚬ an element which needs: 
      » to be less than: 0        (kotlin.Int <1234789>)
      ❗❗ but no such element was found

robstoll avatar Jan 06 '22 21:01 robstoll

I can take this up.

ajayjha5899 avatar Sep 30 '22 04:09 ajayjha5899

@ajayjha5899 this is not an easy one and would require too much help from my side if you are a beginner. That's why it does not have the help wanted label. Please check out the other issues

robstoll avatar Sep 30 '22 05:09 robstoll