Corrade::TestSuite::Compare::Container class

Pseudo-type for comparing container contents.

Prints the length of both containers (if they are different) and then prints value of the 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.