tst_QString::number_base(): distinguish negative binary test-cases

Two test cases were called "base  2, negative"; one of them use -1 as
value, so s/negative/minus 1/ for it.

Change-Id: Ia5da3952d93976262cc8423d4e75ec19dab9a088
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Edward Welbourne 2022-10-05 13:27:22 +02:00
parent 167da771f6
commit 3af2747c46
1 changed files with 1 additions and 1 deletions

View File

@ -5412,7 +5412,7 @@ void tst_QString::number_base_data()
QTest::newRow("base 17, negative") << -12346LL << 17 << QString("-28c4");
QTest::newRow("base 36, negative") << -2181789482LL << 36 << QString("-102zbje");
QTest::newRow("base 2, negative") << -1LL << 2 << QString("-1");
QTest::newRow("base 2, minus 1") << -1LL << 2 << QString("-1");
QTest::newRow("largeint, base 10, positive")
<< 123456789012LL << 10 << QString("123456789012");