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 7cbdc8abbd.

Change-Id: I4ff2d9a52aef643a92339df32cc86f686a689a9a
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
bb10
Marc Mutz 2023-05-10 21:17:50 +02:00
parent 4eea3f857c
commit fb58df3260
1 changed files with 2 additions and 1 deletions

View File

@ -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