Open GoogleCodeExporter opened 9 years ago
It's better done as a gmock matcher.
Original comment by w...@google.com
on 26 Feb 2010 at 8:03
Original comment by w...@google.com
on 27 Sep 2010 at 7:11
Original comment by w...@google.com
on 28 Sep 2010 at 4:49
I have a solution almost finished that uses O(N) memory and
O(N^2) time. It has sit there fore 6 months and I just have to find
the time to give it the final touch! ;-)
My solution is implemented as a googlemock matcher, such that you can
easily compose the predicate with other predicates, e.g.
EXPECT_THAT(MyComparator(), IsSWO(some_array));
EXPECT_THAT(MyComparator(), AnyOf(IsSWO(some_array), HasSomeOtherProperty()));
I'm not sure if the generality for allowing composition is really
needed, but it's nice to have that option. ;-)
Original comment by w...@google.com
on 28 Jan 2011 at 8:53
Original issue reported on code.google.com by
zhanyong...@gmail.com
on 2 Nov 2009 at 9:22