diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 0bfa1be370..b613cb65b0 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -758,7 +758,14 @@ void StringTestCase::FromDouble() } testData[] = { { 1.23, "1.23" }, + // NB: there are no standards about the minimum exponent width + // and newer MSVC versions use 3 digits as minimum exponent + // width while GNU libc uses 2 digits as minimum width... +#ifdef __VISUALC__ + { -3e-10, "-3e-010" }, +#else { -3e-10, "-3e-10" }, +#endif { -0.45678, "-0.45678" }, };