Skip to content

Commit e3d292e

Browse files
committed
Fix windows again
1 parent 034ac78 commit e3d292e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎tests/ts-numeric.cpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,16 @@ TEST_F(TestNumeric, TestExtremeValues) {
286286
// SetDoubleValue must store large/small magnitudes without truncating the
287287
// ASCII conversion buffer.
288288
TEST_F(TestNumeric, TestDoubleExtremeValues) {
289-
const double large = DBL_MAX;
290-
const double small = DBL_MIN;
289+
const double maxValue = DBL_MAX;
290+
const double minValue = DBL_MIN;
291291

292-
ASSERT_EQ(ini.SetDoubleValue("numbers", "large", large), SI_INSERTED);
293-
ASSERT_EQ(ini.SetDoubleValue("numbers", "small", small), SI_INSERTED);
292+
ASSERT_EQ(ini.SetDoubleValue("numbers", "maxValue", maxValue), SI_INSERTED);
293+
ASSERT_EQ(ini.SetDoubleValue("numbers", "minValue", minValue), SI_INSERTED);
294294

295-
const double gotLarge = ini.GetDoubleValue("numbers", "large", 0.0);
296-
const double gotSmall = ini.GetDoubleValue("numbers", "small", 0.0);
297-
ASSERT_NEAR(gotLarge / large, 1.0, 1e-9);
298-
ASSERT_NEAR(gotSmall / small, 1.0, 1e-9);
295+
const double gotMaxValue = ini.GetDoubleValue("numbers", "maxValue", 0.0);
296+
const double gotMinValue = ini.GetDoubleValue("numbers", "minValue", 0.0);
297+
ASSERT_NEAR(gotMaxValue / maxValue, 1.0, 1e-9);
298+
ASSERT_NEAR(gotMinValue / minValue, 1.0, 1e-9);
299299
}
300300

301301
// Test numeric values with whitespace

0 commit comments

Comments
 (0)