From e7913006f114c2fd33e4972744be0b2b2c77023a Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Fri, 7 Oct 2022 19:54:08 +0200 Subject: tst_QDoubleValidator::setRangeOverloads(): rename a data row Two rows shared the same name. They claimed the value used was out of range, but actually that was only true for one of them. The other was in range, but the test reduced the number of digits allowed after the decimal point, thereby making it invalid, so rename that one to reflect this. Change-Id: I0936ea25ec799c0069cd148b9f9bae5d35906093 Reviewed-by: Ivan Solovev --- tests/auto/gui/util/qdoublevalidator/tst_qdoublevalidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui/util') diff --git a/tests/auto/gui/util/qdoublevalidator/tst_qdoublevalidator.cpp b/tests/auto/gui/util/qdoublevalidator/tst_qdoublevalidator.cpp index 225ac14c7f..c06aa42fce 100644 --- a/tests/auto/gui/util/qdoublevalidator/tst_qdoublevalidator.cpp +++ b/tests/auto/gui/util/qdoublevalidator/tst_qdoublevalidator.cpp @@ -642,7 +642,7 @@ void tst_QDoubleValidator::setRangeOverloads_data() QTest::newRow("scientific, 1 digits after point") << QDoubleValidator::ScientificNotation << -1 << -100.0 << 100.0 << 0 << QString("1.2e1") << ACC << INV; - QTest::newRow("scientific, 3 digits after point, not in range") + QTest::newRow("scientific, 3 digits after point, demand fewer") << QDoubleValidator::ScientificNotation << 3 << -100.0 << 100.0 << 1 << QString("10.234e-1") << ACC << INV; QTest::newRow("scientific, 3 digits after point, not in range") -- cgit v1.2.3