Don't duplicate a column name in tst_QByteArray::movablity_data()

It first added a column, then some rows, then called
prependExtended_data(), which expects to be called first in a data
function and starts by adding the same column. So put that first and
drop the duplicate addition of the column.

Change-Id: Ia5cf86f821608e78f0e4872db2b3167ef81cc59e
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
bb10
Edward Welbourne 2022-10-04 18:54:50 +02:00
parent f71daf857c
commit e61dc8a83b
1 changed files with 1 additions and 3 deletions

View File

@ -2129,7 +2129,7 @@ void tst_QByteArray::resize()
void tst_QByteArray::movablity_data()
{
QTest::addColumn<QByteArray>("array");
prependExtended_data();
QTest::newRow("0x00000000") << QByteArray("\x00\x00\x00\x00", 4);
QTest::newRow("0x000000ff") << QByteArray("\x00\x00\x00\xff", 4);
@ -2137,8 +2137,6 @@ void tst_QByteArray::movablity_data()
QTest::newRow("empty") << QByteArray("");
QTest::newRow("null") << QByteArray();
QTest::newRow("sss") << QByteArray(3, 's');
prependExtended_data();
}
void tst_QByteArray::movablity()