l2beat/earl

Add toEqualUnsorted

sz-piotr opened this issue · 2 comments

Similar to toBeAnArrayWith but checks that the length is the same as the number of items checked.

I would propose a more explicit name: toBeAnArrayOfSize. toBeAnArrayOf in my mind could be used with types ie. toBeAnArrayOf(Strings)

Current plan is to implement this as expect([1, 2]).toEqualUnsorted([2, 1])