dsaff / truth-old

Truth: we've made Failure a Strategy
Apache License 2.0
5 stars 2 forks source link

David does duplicates #22

Closed hagbard closed 13 years ago

hagbard commented 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.

cgruber commented 13 years ago

Yep - we do with CollectionSubject->ListSubject what we did with Subject->FooSubject. I'll break them apart later.

hagbard commented 13 years ago

That's pretty much it for this branch unless anyone sees any issues...