summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-05-10 21:17:50 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-05-13 16:58:27 +0200
commitfb58df3260c1c919814810ecbced4f9db6caf9df (patch)
tree2d20f77ee3b31811283acaae4e9a2cda5b4e2d8f
parent4eea3f857c3f1022c39b35dab04fbdee55ca7b2d (diff)
downloadqtbase-fb58df3260c1c919814810ecbced4f9db6caf9df.tar.gz
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 <dennis.oberst@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r--tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp3
1 files changed, 2 insertions, 1 deletions
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<V>{ss}, std::istream_iterator<V>{});
// 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