tst_QBAApiSymmetry::toInt_data(): deduplicate a data-row name

One "empty" test was base ten, the other left the code to work out the
base. Change the latter's name to reflect that difference.

Change-Id: I4918eb0d293420df315d86e532787950b8f05be8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Edward Welbourne 2022-10-05 12:25:58 +02:00
parent cc204f96c9
commit 042702d961

View File

@ -1062,7 +1062,7 @@ void tst_QByteArrayApiSymmetry::toInt_data() const
QTest::newRow("base 0-1") << QByteArray("0x10") << 0 << 16 << true;
QTest::newRow("base 0-2") << QByteArray("10") << 0 << 10 << true;
QTest::newRow("base 0-3") << QByteArray("010") << 0 << 8 << true;
QTest::newRow("empty") << QByteArray() << 0 << 0 << false;
QTest::newRow("base 0 empty") << QByteArray() << 0 << 0 << false;
QTest::newRow("leading space") << QByteArray(" 100") << 10 << 100 << true;
QTest::newRow("trailing space") << QByteArray("100 ") << 10 << 100 << true;