Closed hagbard closed 13 years ago
Added support for duplicates in containsAll for Collections.
[ 1, 2, 2, 3 ].containsAll(1, 2, 3) == TRUE [ 1, 2, 2, 3 ].containsAll(1, 2, 2, 3) == TRUE [ 1, 2, 2, 3 ].containsAll(1, 2, 2, 2, 3) == FALSE
Hopefully a nice error message too. A couple of tiny tidy-up changes to existing tests too.
Yep - we do with CollectionSubject->ListSubject what we did with Subject->FooSubject. I'll break them apart later.
That's pretty much it for this branch unless anyone sees any issues...
Added support for duplicates in containsAll for Collections.
[ 1, 2, 2, 3 ].containsAll(1, 2, 3) == TRUE [ 1, 2, 2, 3 ].containsAll(1, 2, 2, 3) == TRUE [ 1, 2, 2, 3 ].containsAll(1, 2, 2, 2, 3) == FALSE
Hopefully a nice error message too. A couple of tiny tidy-up changes to existing tests too.