This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

Corrade::TestSuite::Compare::Container class

Pseudo-type for comparing container contents.

Prints the length of both containers (if they are different) and prints value of first different item in both containers. Example usage:

std::vector<int> a, b;
CORRADE_COMPARE_AS(a, b, TestSuite::Compare::Container);

It is also possible to sort the containers before comparison using SortedContainer :

CORRADE_COMPARE_AS(a, b, TestSuite::Compare::SortedContainer);

Comparison of containers of floating-point types is by default done as a fuzzy-compare, see Comparator<float> and Comparator<double> for details.

See Comparing with pseudo-types for more information.