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

"but no match was found" is shown in explanation #1364

Open
robstoll opened this issue Mar 30, 2023 · 0 comments
Open

"but no match was found" is shown in explanation #1364

robstoll opened this issue Mar 30, 2023 · 0 comments
Labels

Comments

@robstoll
Copy link
Owner

robstoll commented Mar 30, 2023

Affected Version

0.18.0

API

fluent-en_GB, infix-en_GB

Platform

jvm, js

Kotlin Version

1.4

How to reproduce the problem?

expect(listOf("hello", "world", "foo", "bar")).notToContain.entry {
     toContain("hello")
}

Describe the bug

output

I expected subject: [hello, world, foo, bar]        (java.util.Arrays.ArrayList <1643453315>)
◆ not to contain: 
  ⚬ an element which needs: 
      » to contain: 
        ⚬ value: "hello"        <2088540432>
            » but no match was found                         <------------ this should not be shown here
      ❗❗ following elements were mismatched: 
         ⚬ index 0: "hello"        <2088540432>

Expected behaviour

output

I expected subject: [hello, world, foo, bar]        (java.util.Arrays.ArrayList <1643453315>)
◆ not to contain: 
  ⚬ an element which needs: 
      » to contain: 
        ⚬ value: "hello"        <2088540432>
      ❗❗ following elements were mismatched: 
         ⚬ index 0: "hello"        <2088540432>
@robstoll robstoll added the bug label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant