1

With Nimble matchers, if I try something like this:

expect([["a"],["b"]]).to(contain([["a"],["b"]]))

I get this error:

Error:(29, 54) cannot convert value of type 'Predicate<NMBContainer>' to expected argument type 'Predicate<[[String]]>'

But this is fine:

expect(["a","b"]).to(contain(["a","b"]))

Why is that?

Julian A.
  • 10,928
  • 16
  • 67
  • 107

1 Answers1

1

I just tried it and both versions work fine for me. If you are not using 7.1.1 ver - could be a reason to update.

Vladyslav Zavalykhatko
  • 15,202
  • 8
  • 65
  • 100