Correct value of Avogadro's constant used in a test

It doesn't matter at all, but it's now got a defined value, so use it.

Change-Id: Id8e734cd81624a3d4c139b2639381e3f0b162db4
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
This commit is contained in:
Edward Welbourne 2025-05-05 16:42:03 +02:00
parent 9224fdd3f4
commit 8c086ce832

View File

@ -77,7 +77,7 @@ void tst_toString::numeric_data()
}
QTest::newRow("2e9") << T(2000000000);
QTest::newRow("c.s/m") << T(299792458);
QTest::newRow("Avogadro") << T(6.022045e+23); // things/mol (.996 << 79, so ints overflow to max)
QTest::newRow("Avogadro") << T(6.02214076e+23); // things/mol (c. 2^{79}, so ints overflow)
QTest::newRow("lowest") << std::numeric_limits<T>::lowest();
QTest::newRow("max") << std::numeric_limits<T>::max();