Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrading specs2 to 2.10 matcher 'haveTheSameElementsAs' seems lost

Tags:

scala

specs2

Recently I have upgraded my specs2 to 2.10-2.3.11 and apparently after that compiler can't recognize matcher must haveTheSameElementsAs. I couldn't find where they moved it or similar matcher in specs2. Any idea where is it/ what I should use instead of that one?

like image 516
user3519173 Avatar asked Nov 26 '25 07:11

user3519173


1 Answers

You must use collection must contain(exactly(collection2:_*)).

like image 79
Eric Avatar answered Nov 28 '25 20:11

Eric



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!