From fb58df3260c1c919814810ecbced4f9db6caf9df Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 10 May 2023 21:17:50 +0200 Subject: [PATCH] tst_ContainerApiSymmetry: make a comment more precise It took me a sec to figure out the relation between the comment and the code line following it. Make it easier for the next guy and add a bit more infos. Amends 7cbdc8abbda12488f51317313347bbc220b42fe0. Change-Id: I4ff2d9a52aef643a92339df32cc86f686a689a9a Reviewed-by: Dennis Oberst Reviewed-by: Ivan Solovev --- .../tools/containerapisymmetry/tst_containerapisymmetry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp index b307db1e24..b97763fe65 100644 --- a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp +++ b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp @@ -820,7 +820,8 @@ void tst_ContainerApiSymmetry::assign_impl() const ss << "9 9 9 9 9 9 9 "; c.assign(std::istream_iterator{ss}, std::istream_iterator{}); // We cannot check the capacity here because growth rates differ between implementations. - CHECK(c, tData, c.size(), S(7), S(8), S(8)); + // Pass a constant: + CHECK(c, tData, c.size(), S(7), /*c.capacity()*/S(8), S(8)); } { // initializer-list version