nagyistoce / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

need container matcher WhenSorted(m) #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ElementsAre() only works for ordered containers.  It's useful to have a matcher 
WhenSorted(m) which matches a container that, when sorted in ascending order, 
matches m, e.g.

  WhenSorted(ElementsAre(1, Gt(3), Gt(42)))

Also useful is a generalization of WhenSorted() that takes a custom comparator:

  WhenSortedBy(comparator, m)

Original issue reported on code.google.com by w...@google.com on 14 Jun 2010 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 13 Sep 2011 at 8:35

GoogleCodeExporter commented 9 years ago
fixed in r397.

Original comment by w...@google.com on 16 Sep 2011 at 4:56