`SortedBag.isSubset(of:)` et al. don't do multiset comparisons yet
lorentey opened this issue · comments
Karoy Lorentey commented
SortedBag
's subset comparison does not count multiplicities, so it returns incorrect results for a multiset. E.g., SortedBag([1, 1]).isSubset(of: [1])
should be false
, but it currently returns true
.
This breaks the new tests added in a7f642e.