MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k stars 104 forks source link

Unreliable matching of unordered Sequence parameters #268

Closed tarbayev closed 3 years ago

tarbayev commented 3 years ago

Current implementation treats Sequence parameters as ordered collections, while the order of the elements is not guaranteed. This leads to random failures in matching Dictionary and other unordered collection parameters.

g-amichnia commented 3 years ago

Changed, currently only Arrays are treated as ordered sequences. For all behaviours that are non-default, please override comparator for that specific sequence type.