]> git.saurik.com Git - wxWidgets.git/commitdiff
fix StringTestCase::FromDouble: newer MSVC versions use three digits for the exponent...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 2 Jun 2010 14:56:58 +0000 (14:56 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 2 Jun 2010 14:56:58 +0000 (14:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index 0bfa1be370d6b50538af52f40f9469af78475436..b613cb65b02507e49548790ef74ef7027cac5fd1 100644 (file)
@@ -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" },
     };