Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Unified Diff: base/i18n/number_formatting_unittest.cc

Issue 7741032: Upstream android i18n change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/i18n/rtl.cc » ('j') | base/i18n/rtl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/number_formatting_unittest.cc
diff --git a/base/i18n/number_formatting_unittest.cc b/base/i18n/number_formatting_unittest.cc
index e6a54b5bf837106855f079194abddf57c7f68750..c7485d1d2b8d7caee99765ef77a758362b146eff 100644
--- a/base/i18n/number_formatting_unittest.cc
+++ b/base/i18n/number_formatting_unittest.cc
@@ -55,7 +55,10 @@ TEST(NumberFormattingTest, FormatDouble) {
const char* expected_german;
} cases[] = {
{0.0, 0, "0", "0"},
+#if !defined(OS_ANDROID)
+ // Bionic can't printf negative zero correctly.
{-0.0, 4, "-0.0000", "-0,0000"},
+#endif
{1024.2, 0, "1,024", "1.024"},
{-1024.223, 2, "-1,024.22", "-1.024,22"},
{std::numeric_limits<double>::max(), 6,
« no previous file with comments | « no previous file | base/i18n/rtl.cc » ('j') | base/i18n/rtl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698