Files
ntfy/util
Michael Manganiello ebd4367dda Fix false positive in ContainsAll function
As the `ContainsAll` is working with a match counter, it could return
a false positive when the `haystack` slice contains duplicate elements.

This can be checked with the included testing scenario, with
`haystack = [1, 1]` and `needles = [1, 2]`. Iterating over the haystack
to check for items to be present in needles will increase the match
counter to 2, even if `2` is not present in the first slice.
2023-05-12 09:51:47 -03:00
..
2022-09-27 12:37:02 -04:00
2022-03-10 21:55:56 -05:00
2022-10-01 16:31:48 -04:00
2023-01-18 15:50:06 -05:00
2023-02-08 22:57:10 -05:00
2022-06-16 11:40:56 -04:00
2023-02-27 14:34:05 -05:00
2023-03-03 13:56:48 -05:00