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

Unified Diff: tests/language/src/ToStringAsFixedTest.dart

Issue 8958018: ToStringAsFixed returns now 0 instead of -0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ToStringAsFixedTest.dart
diff --git a/tests/language/src/ToStringAsFixedTest.dart b/tests/language/src/ToStringAsFixedTest.dart
index b2474b03ad8826c71b6fc031d743e1a4bf7bf859..05c38d5d1eb1206f1669117bdd0b0e24431053cc 100644
--- a/tests/language/src/ToStringAsFixedTest.dart
+++ b/tests/language/src/ToStringAsFixedTest.dart
@@ -64,9 +64,9 @@ class ToStringAsFixedTest {
Expect.equals("-0.00000006", (-0.00000006).toStringAsFixed(8));
Expect.equals("-0.000000060", (-0.00000006).toStringAsFixed(9));
Expect.equals("-0.0000000600", (-0.00000006).toStringAsFixed(10));
- Expect.equals("-0", (-0.0).toStringAsFixed(0));
- Expect.equals("-0.0", (-0.0).toStringAsFixed(1));
- Expect.equals("-0.00", (-0.0).toStringAsFixed(2));
+ Expect.equals("0", (-0.0).toStringAsFixed(0));
+ Expect.equals("0.0", (-0.0).toStringAsFixed(1));
+ Expect.equals("0.00", (-0.0).toStringAsFixed(2));
Expect.equals("1000", 1000.0.toStringAsFixed(0));
Expect.equals("0", 0.00001.toStringAsFixed(0));
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698